httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Messer" <rmes...@onebox.com>
Subject Re: Extra numerical headers with mod_proxy and 1.3.24
Date Thu, 13 Jun 2002 16:55:54 GMT
Stefan,

Thanks for your message, I applied the proxy_http1.1_chunking.patch and
recompiled and this seems to resolve the issue.

Rob

---- Stefan Wiesendanger <stefan@open.ch> wrote:
> Hi all
> I've mentioned this problem in an earlier post. It occurs with mod_proxy
> since 1.3.24 (which coincides with mod_proxy starting to use HTTP/1.1
> in-
> stead of 1.0 in previous versions).
> 
> There is a patch for 1.3.24 which is supposed to fix this (I can't
> confirm
> for now but am recompiling Apache with this patch):
> http://www.apache.org/dist/httpd/patches/apply_to_1.3.24/proxy_http1.1_chunking.patch
> 
> There is a patch for 2.0.x to let you select which of HTTP/1.0 and
> HTTP/1.1
> mod_proxy should be using:
> http://www.apachelabs.org/proxy-dev/200105.mbox/%3C3482305AF0F6CF469ED45C0D48FAFCF7091FF27D@cnet10.cnet.com%3E
> 
> At a more basic level, the problem seems to be related to the way mod_proxy
> rearranges the HTTP headers and maybe to the additional X-Cache line
> it
> adds. This for some reason keeps the client browser from correctly
> inter-
> preting the "Transfer-encoding: chunked" line in the HTTP header. For
> me,
> this is a browser problem (present in all currnet M$-Browsers and Netscape,
> but not Mozilla 1.0, applause), but as a website operator, you need
> to
> work around browser problems (you know the song).
> 
> Also, check the remarks at  http://www.apacheweek.com/issues/02-03-29
> about
> mod_proxy in 1.3.24 (HTTP/1.0 vs. 1.1 issues, Cookie support).
> 
> Cheers://Stefan
> 
> 
> 
> Avnish Pundir wrote:
> > Hi Robert,
> > These extra headers are due to chunked-encoding (Transfer-Encoding:
> chunked
> > in your response) which is a standard feature and every standard
> browser
> > must support it (IE,Netscape does). Very usually these are present
> with
> > dynamic pages (like cgi programs, servlet etc) since server doesn't
> know in
> > advance how much data exactly it has to sent. Please go thru HTTP
> RFC for
> > more details on chunked-encoding.
> > Not sure but guess this should be present with 1.3.12 too.
> > 
> > Thanks
> > Avnish
> > ----- Original Message -----
> > From: "Robert Messer" <rmesser@onebox.com>
> > To: <users@httpd.apache.org>
> > Sent: Thursday, June 13, 2002 1:21 PM
> > Subject: Extra numerical headers with mod_proxy and 1.3.24
> > 
> > 
> > I have a web server running 2 httpd servers: one for regular documents
> > and images, and one for mod_perl.  This is a common set up for mod_perl
> > and works well.  The httpd_docs server sends requests to the httpd_perl
> > server using mod_proxy.
> > 
> > However, I recently upgraded to apache 1.3.24 and I seem to be getting
> > extra headers in my pages.  For example, if I do this:
> > 
> > telnet my.host.com 80
> > 
> >>GET /scripts/test.pl HTTP/1.1
> >>Host: my.host.com
> > 
> > 
> > The server returns something like this:
> > 
> > HTTP/1.1 200 OK
> > Date: Thu, 13 Jun 2002 06:44:13 GMT
> > Server: Apache/1.3.12 (Unix) mod_perl/1.21
> > Content-Type: text/html; charset=ISO-8859-1
> > Transfer-Encoding: chunked
> > 
> > 122
> > <?xml version="1.0" encoding="utf-8"?>
> > <!DOCTYPE html
> >         PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
> >         "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml"
> > lang="en-US"><head><title>Untitled
> > Do
> > cument</title>
> > </head><body><p>Test script</body></html>
> > 0
> > 
> > The numbers at the top and bottom (122 and 0 in this example) vary
> depending
> > on the page retrieved.  My question is, what are these headers and
> how
> > do I get rid of them?  They are ignored by some browser but on Netscape
> > 4.7 for example they actually show up on the page.  This never happened
> > with my prior version of apache, 1.3.12.
> > 
> > If anyone has any thoughts or can point me in the right direction
> I would
> > appreciate it.  Thank you,
> > 
> > Rob
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> > 
> 
> 
> -- 
> 
> stefan wiesendanger
> risk engineer
> 
> open systems ag
> raeffelstrasse 29
> ch-8045 zurich
> t: +41 1 455 74 00
> f: +41 1 455 74 01
> stefan@open.ch
> 
> http://www.open.ch
> 
> --
> 
> PGP fingerprint: 3437 2D2D E20F C10B EE2D 3562 970A F347 3B2E 8416
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
>  

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


Mime
View raw message