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 01:39:17 +0530 (IST)

> On Thu, 14 Jun 2007, Gowranga wrote:
>
>> curl -x proxy:port -v -L www.google.com
>> ------------------------------------------------------------------
>> <html><head><meta http-equiv="content-type" content="text/html;
>
> Then something is seriously damaged in your end, since -v is supposed to
> show
> both your request and the received headers and you showed us nothing of
> those...
>

I am sorry, I have shown the wrong output. In order to capture the html
output, I had tried "-o page.html" option, and so missed out the following
portion:

curl -x proxy:port -v -L www.google.com
* About to connect() to proxy xx1.xx.xx.xx port yyyy (#0)
* Trying some.ip.add.ress ... connected
* Connected to proxy (xx1.xx.xx.xx) port yyyy (#0)
> GET http://www.google.com HTTP/1.1
> User-Agent: curl/7.16.2 (i686-pc-linux-gnu) libcurl/7.16.2
OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
> Host: www.google.com
> Pragma: no-cache
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.0 302 Moved Temporarily
< Location: http://www.google.co.in/
< Cache-Control: private
< Set-Cookie:
PREF=ID=25206b1ab13f82d3:TM=1181763938:LM=1181763938:S=UPC1G-7C4Mz2Ry13;
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: Wed, 13 Jun 2007 19:45:38 GMT
< X-Cache: MISS from xx2.xx.xx.xx
* HTTP/1.0 proxy connection set to keep alive!
< Proxy-Connection: keep-alive
<
* Ignoring the response-body
* Connection #0 to host xx1.xx.xx.xx left intact
* Issue another request to this URL: 'http://www.google.co.in/'
* Re-using existing connection! (#0) with host xx1.xx.xx.xx
* Connected to xx1.xx.xx.xx (some.ip.add.ress) port yyyy (#0)
> GET http://www.google.co.in/ HTTP/1.1
> User-Agent: curl/7.16.2 (i686-pc-linux-gnu) libcurl/7.16.2
OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
> Host: www.google.co.in
> Pragma: no-cache
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.0 200 OK
< Cache-Control: private
< Content-Type: text/html; charset=ISO-8859-1
< Set-Cookie:
PREF=ID=403cdbe60df19b44:TM=1181763938:LM=1181763938:S=TT2c0b4-gzYVorYw;
expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.co.in
< Server: GWS/2.1
< Date: Wed, 13 Jun 2007 19:45:38 GMT
< X-Cache: MISS from xx2.xx.xx.xx
< Proxy-Connection: close
<

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