cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: endless loop on redirect (with patch)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 10 May 2001 13:31:00 +0200 (MET DST)

On Thu, 10 May 2001, Ingo Wilken wrote:

> I was testing an application based on curl 7.7.3 on some URLs, and it
> ran> into an endless loop while while trying to fetch
> http://www.lifeline.de. The reason was a redirect:

[snip]

> Note the two spaces after the Location: field (allowed according to RFC
> 2068 section 4.2). Unfortunately, curl copied the second space into the
> new URL...

Doh!

Nice patch. Thanks a lot. I edited it slightly before I committed it to CVS
(I used isspace() instead).

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
Received on 2001-05-10