curl-library
Re: Problems related to probing for proxy authentication methods
Date: Wed, 30 Sep 2009 19:32:00 -0700
On Wed, Sep 30, 2009 at 4:39 PM, Joshua Kwan <jkwan_at_vmware.com> wrote:
> On 9/29/09 14:54, "Daniel Stenberg" <daniel_at_haxx.se> 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.
-Costa
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-01