curl-library
Re: Problem with Location header redirect
Date: Tue, 5 Dec 2006 13:25:20 +0100 (CET)
On Tue, 5 Dec 2006, Dobromir Velev wrote:
> Here is the patch which works with my case. It is done against the
> 7.16.0version
...
> + else if (data->reqdata.newurl && k->size == -1 && !conn->bits.chunk &&
> !conn->bits.close){
> + /* Location redirect without Content-length ot Transfer Encoding
> headers
> + * Hopefully all data has been read from the connection so we can
> stop
> + * waiting for data and continue with the next request.
> + */
The "Hopefully" part here is really the key issue I have with this approach.
It is very error-prone and may not even work for your case every time.
So even though I am eager have libcurl work at least as fine as the browsers
on the given input, I would rather see a more reliable and predictable fix
than this. Sorry.
It would be interesting to know how the Firefox guys have approached this
problem...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-12-05