cURL / Mailing Lists / curl-library / Single Mail


Re: Multiple extra redirects with lib 7.10.5

From: Daniel Stenberg <>
Date: Tue, 22 Jul 2003 09:22:20 +0200 (CEST)

On Mon, 21 Jul 2003, Mark Fletcher wrote:

> We use libcurl for our RSS crawler, using the multi interface in a single
> threaded configuration. We began receiving complaints of extra fetches in
> cases of HTTP redirects. I did some investigating, and it looks like the
> following change needs to be made to lib/multi.c at line 440:
> easy->result = Curl_follow(easy->easy_handle,
> easy->easy_conn->newurl);
> easy->easy_conn->newurl = NULL;
> I couldn't find where newurl was ever cleared before. Can someone verify
> that this is a correct fix and that the issue isn't being caused by us using
> the library in an incorrect fashion?

I believe this is a correct fix, and a very similar one has already been
committed to CVS to be used in the upcoming release...

> btw, libcurl is a great package and it's otherwise worked very well for us.

I'm happy it works nicely for you!

 Daniel Stenberg -- curl: been grokking URLs since 1998
This email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here:
Received on 2003-07-22