Article delegate-en/4518 of [1-5109] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:]  
Re: HTTP Protocol Version Control
Mon, 27 Jul 2009     Yutaka Sato

Hi,

In message  on 07/23/09(14:25:24)
you wrote:
 |We would like to have delegate respect the HTTP Protocol Version as sent
 |back in the response from the server (for some servers only).

Of course I'm respecting the HTTP specification.
The protocol version is hop-by-hop value and must be adjusted
to the version of the message sent from DeleGate to the peer.
When chunked encoding is used, it MUST be "HTTP/1.1".

 |Is this possible?
 |
 |We have temporarily addressed this problem by setting the
 |HTTPCONF="bugs:no-chunked" OR HTTPCONF="clver:1.0" but we then lose the
 |advantage of chunking for those requests that would work just fine. In fact,
 |there is only one site at the moment that requires the response to be
 |HTTP/1.0, and this is an client-side Active-X talking with a streaming video
 |server (IP camera application).
 |
 |Here is a non-proxy request/response...
 |
 |CLIENT REQUEST IS "GET HTTP/1.1"
 |SERVER RESPONSE IS "HTTP/1.0..." and everybody is happy
 |
 |And with delegate as a MITM...
 |
 |CLIENT REQUEST IS "GET HTTP/1.1"
 |DELEGATE REQUEST TO SERVER IS "GET HTTP/1.1"
 |SERVER RESPONSE TO DELEGATE IS "HTTP/1.0..."
 |DELEGATE RESPONSE TO CLIENT IS "HTTP/1.1..." and the client is not happy

You can suppress the chunked encoding (and rewriting the version number)
for specified content-types with HTTPCONF="thru-type:listOfTypes".
The default value is:

  HTTCONF="thru-type:application/zip,application/x-rpm"

Cheers,
Yutaka
--
  9 9   Yutaka Sato http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller
  search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V