You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/08/11 22:02:15 UTC

DO NOT REPLY [Bug 11618] New: - mod_rewrite removes Chunked headers and byte lengths on reverse proxy.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11618>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11618

mod_rewrite removes Chunked headers and byte lengths on reverse proxy.

           Summary: mod_rewrite removes Chunked headers and byte lengths on
                    reverse proxy.
           Product: Apache httpd-2.0
           Version: 2.0.40
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: siberian@siberian.org


Using Mod_Rewrite in a [proxy] configuration, when it receives a Chunked
Encoding request it appears that when apache makes the re-request it is
stripping out the TE: and  Transfer-Encoding: headers as well as the chunk
length information. This appears very deliberate but I have no idea what its
doing it.

Below is a typical example of a captured session ( captured via tcpflow ).

Tested in 2.0.35, 2.0.39 an 2.0.40

--------------------------------------
- Rewrite Rule handling this request -
--------------------------------------
RewriteRule ^/pmcserver(.*)$ http://128.241.116.14:6208/pmcserver$1 [proxy]

----------------------------
- ORIGINAL INBOUND REQUEST -
----------------------------
POST /pmcserver/GetServerTime/ HTTP/1.1
Host: pre.printme.com:443
User-Agent: Mozilla/4.0 (compatible)
Proxy-Connection: close
Connection: close
Accept: */*
Content-Type: application/octet-stream
TE: chunked
Accept-Encoding: deflate
Content-Encoding: deflate
Transfer-Encoding: chunked
Cache-Control: no-cache, no-transform, no-store
Pragma: no-cache
X-PrintMe-XML-Length: 579
Via: 1.1 128.241.116.8 (Alteon iSD-SSL/2.0)
X-SSL: decrypted=true, ciphers="TLSv1/SSLv3 RC4-SHA"

177
x.uR.n.0...+P.....W.#....J.H{.Rp.j...>....#.J>..........5xs...~...h....u.7......j+/D.+y..?.M..'?@...}......oD..........D.D3...
D[Kco..?Ow...!..y.U........f...`A.......9....9xbuc..=..y0p.....|o.....G.......]y....*?."......;Hh8..s.....il.p.88.P...T.........f.2*]..-+X..!y...(M
...b9..."5J.........f*U.#.+......4.(V...K.c.b..O.U.Q.....#.Rcp...D..3.0.6o
l9_..vS..0d.6D.)..W|.o...
0


-------------------------
- REVERSE PROXY REQUEST -
-------------------------
POST /pmcserver/GetServerTime/ HTTP/1.1
Host: 128.241.116.14:6208
User-Agent: Mozilla/4.0 (compatible)
Accept: */*
Content-Type: application/octet-stream
Accept-Encoding: deflate
Content-Encoding: deflate
Cache-Control: no-cache, no-transform, no-store
Pragma: no-cache
X-PrintMe-XML-Length: 579
Via: 1.1 128.241.116.8 (Alteon iSD-SSL/2.0), 1.1 pre.printme.com:443
X-SSL: decrypted=true, ciphers="TLSv1/SSLv3 RC4-SHA"
Max-Forwards: 10
Connection: close
X-Forwarded-For: 10.10.99.83
X-Forwarded-Host: pre.printme.com:443
X-Forwarded-Server: pre.printme.com


x.uR.n.0...+P.....W.#....J.H{.Rp.j...>....#.J>..........5xs...~...h....u.7......j+/D.+y..?.M..'?@...}......oD..........D.D3...
D[Kco..?Ow...!..y.U........f...`A.......9....9xbuc..=..y0p.....|o.....G.......]y....*?."......;Hh8..s.....il.p.88.P...T.........f.2*]..-+X..!y...(M
...b9..."5J.........f*U.#.+......4.(V...K.c.b..O.U.Q.....#.Rcp...D..3.0.6o
l9_..vS..0d.6D.)..W|.o...


HTTP/1.1 411 Length Required
Content-type: text/plain
Connection: close
Content-Length: 0

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org