cURL / Mailing Lists / curl-library / Single Mail


Re: Curl_follow() question.

From: Daniel Stenberg <>
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 -- --
       Dedicated custom curl help for hire:
Received on 2004-09-06