You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Adrian Sutton <ad...@ephox.com> on 2003/02/19 04:04:50 UTC

Proxy-Connection: close header

Hi all,
Just run into a non-standards compliance problem with IIS proxies in certain
configurations.  At times instead of returning a "Connection: close" header,
it returns a "Proxy-connection: close" header.  HttpClient misses this
notification and throws an exception when it suddenly discovers the
connection was closed.  With anything but NTLM authentication I imagine that
this would work, but HttpClient runs out of retry attempts when using NTLM.

The solution in the older codebase I'm using is to just add a check for
Proxy-connection: close in HttpMethodBase.shouldCloseConnection().  I'm sure
there's a similar function in the updated code.  I'll look into it further
and hopefully come up with a patch for discussion late this afternoon.  If
anyone has comments or a better solution I'd love to hear about it though.

Adrian Sutton, Software Engineer
Ephox Corporation
www.ephox.com

Re: Proxy-Connection: close header

Posted by Laura Werner <la...@lwerner.org>.
Adrian Sutton wrote:

>Just run into a non-standards compliance problem with IIS proxies in certain
>configurations.  At times instead of returning a "Connection: close" header,
>it returns a "Proxy-connection: close" header.
>
For what it's worth, I've noticed that Squid sometimes uses a 
Proxy-Connection header as well.  So whatever patch you come up with 
will probably be useful for more than just IIS. 

Laura Werner
BeVocal