You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Content-Type header isn't propagated when POSTing data. Instead, it's replaced by a form-data type. This is particular issue is problematic when dealing with RESTful services that consumes a particular content-type (application/json, application/xml).
I solved this by adding this line just before the curl_exec:
The Content-Type header isn't propagated when POSTing data. Instead, it's replaced by a form-data type. This is particular issue is problematic when dealing with RESTful services that consumes a particular content-type (application/json, application/xml).
I solved this by adding this line just before the curl_exec:
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: '.$_SERVER['CONTENT_TYPE']));
The text was updated successfully, but these errors were encountered: