I am trying to send an image location url using curl script to a restful webservice. The script is working fine when i run it directly on my server unix box. However while trying to fire the script using the sample code - fireCommandExec, i am getting
the below error.
500 internal server error.
We’re sorry but a serious error has occurred in the system.
curl script -
curl -k -i -u username:password -H “Content-Type=multipart/form-data” --data “imageURI=imageLocationURL” -X POST endPointURL
java code used to fire the command -
Process child = Runtime.getRuntime().exec(command);
Kindly help me to resolve the issue and let me know if i am doing anything wrong.