Curl
SOAP request with BASIC authentication
curl --user $UNAME:$PASSWORD --header 'Content-Type: text/xml' --data @FILENAME.xml URL
POST JSON object
curl --header 'Content-Type: application/json' --data '{"foo":"1","bar":"2"}' URL
POST binary data
curl --header 'Content-Type: application/pdf' --data-binary @FILENAME.pdf URL