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.
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.