I need to POST the following JSON code, but for some reason it is not working. Below is the code that I have.
$fieldString = \"395609399\"; //the curl reques
I had issues sending JSON via cURL, and the problem was that I was not explicitly setting the content length in the header.
So the Header should be:
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Content-Length: ' . strlen($json)));