I had the same issue getting a curl to fire. Echo out the response code of the curl command ($?) if it is returning (1) then you have an unsupported protocol and need to add to your script:
unset LD_LIBRARY_PATH
Try this, it worked for me.
... View more