cURL / Mailing Lists / curl-library / Single Mail


Re: Problems related to probing for proxy authentication methods

From: Constantine Sapuntzakis <>
Date: Wed, 30 Sep 2009 19:32:00 -0700

On Wed, Sep 30, 2009 at 4:39 PM, Joshua Kwan <> wrote:
> On 9/29/09 14:54, "Daniel Stenberg" <> wrote:
>> libcurl shouldn't require that the connection is persistant, and yes it should
>> react on the 407 and do a new connection for the subsequent request. I thought
>> that already worked... any chance you can write up a test case for the curl
>> test suite that repeats this?
> I think the erroneous bit is that CCProxy doesn't reset the connection after
> sending the 407, it only resets it after it gets more data. I am feeling
> like that is very nonstandard behavior:

Agreed - CCProxy should send a shutdown if it doesn't support another request.

However, the same situation can happen with any proxy or server that
does support persistent connections. curl sends the next header just
as the proxy times out the persistent connection. So it would be
friendlier if curl deal with this situation rather than propagating it
to the client.

Maybe the right way to deal with it is: if the request is not the
first request on the connection and the server resets the connection,
then retry the request on a fresh connection.

List admin:
Received on 2009-10-01