Re: Weird 302 error loop
Date: Tue, 21 Aug 2007 22:07:02 +0200 (CEST)
On Tue, 21 Aug 2007, andrew baird wrote:
> I set up my PHP script as follows [domains, users, and passwords have been
Do note that this script doesn't enable libcurl's "cookie engine", it only
sets a single string to pass in the cookie header. I bet that's not what the
> This goes on for about 20 more responses. Each time the location is
> different, but it does eventually loop and start hitting the same locations
> over. The final response is a 302 error with a Location header, but for
> whatever reason cURL doesn't follow it. Perhaps this is a preventative
> feature of cURL?
libcurl has a set amount of maximum number of redirects to follow, possibly
you reached that.
Also, you should consider using CURLOPT_VERBOSE to compare the request headers
as well with the request headers you've recorded with livehttpheaders...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2007-08-21