if curl getinfo for HTTP CODE is not returning a code!?
- by jtanmay
Hi,
I am doing a normal curl call to a webservice and I grab the return HTTP code through
$code = curl_getinfo ($ch, CURLINFO_HTTP_CODE);
It does return me $code as 200 - which is good.
But logging the curl calls now from a week, there where few calls to the same webservice which didn't return anything! so basically I am getting $code as blank.
Can someone tell me what should be going wrong under those scenarios, and if can debug it more!?
Thanks,
Tanmay