curl-library
Re: http redirect problem....
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 4 Mar 2009 23:47:51 -0700
Date: Wed, 4 Mar 2009 23:47:51 -0700
On Thu, Mar 05, 2009 at 11:52:01AM +0530, Mohan gupta wrote:
> I am new to libcurl and is using it to make a web crawler . The problem i faced
> using it is that it is not following redirect properly .
> I tried to download the page www.gmail.com and the returned file is
>
> <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-7">
> <TITLE>301 Moved</TITLE></HEAD><BODY>
> <H1>301 Moved</H1>
> The document has moved
> here.^M
> </BODY></HTML>^M
>
>
> I did use curl_easy_setopt(easy_handle,CURLOPT_AUTOREFERER,1L); but it has not
> helping.
You want the CURLOPT_FOLLOWLOCATION option.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2009-03-05