Hi I am using php curl request. it is working fine on local but giving 404 page error with http_code 404 not found on live site. Here is code i am using:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "strJSON=" . json_encode($api_array));
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
Exactly same code giving perfect output on local but giving 404 page. Couldn't figure out the issue.