cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Not able to follow redirections

From: Gowranga <gowranga_at_serc.iisc.ernet.in>
Date: Thu, 14 Jun 2007 21:25:49 +0530 (IST)

>
> LiveHTTPheaders is for tracking what your firefox sends and gets. When the
> PHP
> script runs on another place, you using LiveHTTPheaders won't help one bit
> on
> this tracking. You should rather use CURLOPT_VERBOSE, or even better
> extend
> the PHP/CURL interface to offer support for CURLOPT_DEBUGFUNCTION and do a
> full trace of the traffic.

On including CURLOPT_VERBOSE, I get some additional information relating
to cookies

cURL error number:0 cURL error:HTTP/1.0 302 Moved Temporarily Location:
http://www.google.co.in/ Cache-Control: private
Set-Cookie:PREF=ID=34b97c469ac9f652:TM=1181834165:LM=1181834165:S=ew3bX_7gbGb_G-gO;
expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com
Content-Type: text/html Server: GWS/2.1 Content-Length: 221 Date: Thu, 14
Jun 2007 15:16:05 GMT X-Cache: MISS from xx1.xx.xx.xx
 Proxy-Connection: close HTTP/1.0 200 OK Cache-Control: private
Content-Type: text/html; charset=UTF-8
Set-Cookie:PREF=ID=198ac7e8f9427e91:TM=1181834165:LM=1181834165:S=o3bQk7JjRtuwUdVG;
expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.co.in
Server: GWS/2.1 Date: Thu, 14 Jun 2007 15:16:05 GMT X-Cache: MISS from
xx1.xx.xx.xx Proxy-Connection: close

>> HTTP/1.x 200 OK
>
> This is simply what your script returns back to the browser, isn't it?
>
yes, HTTP/1.0 200 OK is returned by the script.

Kindly help me proceed further.

Thanks

-gowranga

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-06-14