cURL / Mailing Lists / curl-library / Single Mail

curl-library

http redirect problem....

From: Mohan gupta <mohangupta13_at_gmail.com>
Date: Thu, 5 Mar 2009 11:52:01 +0530

hello everyone,

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
<A HREF="http://mail.google.com/mail/">here</A>.^M
</BODY></HTML>^M

I did use curl_easy_setopt(easy_handle,CURLOPT_AUTOREFERER,1L); but it has
not helping.
please help.

thanks in advance..
Mohan
Received on 2009-03-05