curl-library
Re: problem with followlocation
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 30 Nov 2003 12:26:05 +0100 (CET)
Date: Sun, 30 Nov 2003 12:26:05 +0100 (CET)
On Sat, 29 Nov 2003, Hetfield wrote:
> help me :) plleease :)
This isn't a libcurl problem. The site you are interacting with checks the
user-agent field and acts differently. As you don't pass any user-agent string
at all, it seems to only return a 200 for you.
I made it work by adding:
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Mozilla/4");
-- Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/ [[ Do not post private mails to this email address. They won't reach me. ]] ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/Received on 2003-11-30