cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: endless loop on redirect (with patch)

From: Cris Bailiff <c.bailiff_at_awayweb.com>
Date: Thu, 10 May 2001 22:44:20 +1000

This is likely to be a problem in other headers as well - white space is allowed
anywhere within the headers, and is all equivalent. I haven't examined all the
others, but I suspect ranges and 'Transfer-Encoding' may also be trouble.

Cris

Daniel Stenberg wrote:
>
> 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