Thanks for the reply, here is my script
$c = curl_init("http://10.225.148.183/y.php");
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
curl_setopt($c, CURLOPT_FAILONERROR, true);
curl_setopt($c, CURLOPT_HEADER, true);
$responseMessage = curl_exec($c);
If the site is returning 200 response, I can get the headers also but if it
returns any other error status, it does not give headers.
I am using Windows XP, PHP 5.2.2, curl 7.16
On Mon, Apr 27, 2009 at 11:46 PM, Marcos Santos Junior
> I'm use "CURLOPT_HEADER=true" here and it works fine on Vista Ultimate
> PHP5.2.8, Curl 7.16.0.
> show ur script then I'll might me able to clear up things 4u
> 2009/4/27 D M <deep0mal_at_gmail.com>
>> Hi Guys,
>> I am trying to handle the HTTP 503 error. I want to read the Retry-After
>> header which come along with the response headers of 503 Service
>> unavailable. I am using curl extension for PHP. The problem is even i am
>> setting CURLOPT_HEADER as true still i am not able to get the headers. Is
>> this the default behavior of curl extension in PHP? Is there a way to get
>> these headers somehow?
>> Any help would be appreciated.
>> Thanks n Regards,
Received on 2009-04-28