I am getting CURLINFO_HTTP_CODE as 201 but I need 200. What is the reason that it is returning 201 instead of 200? Please help me on thins.
Here is my code
$ch = curl_init(URL);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_COOKIEFILE, QC_COOKIES);
curl_setopt($ch, CURLOPT_COOKIEJAR, QC_COOKIES);
curl_setopt($ch, CURLOPT_HTTPHEADER,
array("Content-Type: application/json; charset=utf-8","Accept:application/json, text/javascript, */*; q=0.01"));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$resp=curl_exec($ch);
$httpcode=curl_getinfo($ch, CURLINFO_HTTP_CODE);
Thanks.