if curl getinfo for HTTP CODE is not returning a code!?
Posted
by
jtanmay
on Stack Overflow
See other posts from Stack Overflow
or by jtanmay
Published on 2010-12-22T19:46:16Z
Indexed on
2010/12/22
19:54 UTC
Read the original article
Hit count: 137
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
© Stack Overflow or respective owner