curl-library
Re: Reproducible crash in Curl-7.21.7 (on windows)
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 29 Jun 2011 12:28:39 +0200 (CEST)
Date: Wed, 29 Jun 2011 12:28:39 +0200 (CEST)
On Wed, 29 Jun 2011, Christian Hägele wrote:
> I found a regression in Curl-7.21.7 (We used 7.21.2 before):
It's not really a regression as the HTTP negotiate path was not done using
SSPI back in 7.21.2, as that feature was introduced in 7.21.4... Still the bug
is real and I can see it in the code.
> When the Http-Server responds with the following header:
>
> HTTP/1.1 407 Proxy Authentication Required
>
> It seems that this always happens when a server returns Http-code 407 for
> some reason. In that case curl assumes that there is a proxy involved which
> might be wrong.
It is a fun server response though, as 407 is meant for proxies.
I suggest this patch as a fix:
Received on 2011-06-29