Linux cURL vs PHP cURL - POST Request Linux cURL vs PHP cURL - POST Request curl curl

Linux cURL vs PHP cURL - POST Request


Get rid of the line:

  'Content-Type: text/plain'

You are setting the content type for the entire message and it is not formatting the POST data correctly.