cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Curl_follow() question.

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 6 Sep 2004 00:09:28 +0200 (CEST)

On Sun, 5 Sep 2004, Roman Koifman wrote:

> I'm testing some proxy, and sometimes this proxy returns a "status page"
> which means the redirection to another location. The status page return code
> is 200 OK. Can I and how use Curl_follow mechanism ? Can I trigger, somehow,
> the libcurl to follow the new location, which is set in one of libcurl
> callbacks ?

The internal follow-location mechanism, as enabled with
CURLOPT_FOLLLOWLOCATION, is only activated by a suitable 3XX code and a
Location: header. You can't make a 200 response code get redirected.

--
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-09-06

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET