httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: odd content length goings on
Date Mon, 27 Aug 2001 16:53:39 GMT
On 27 Aug 2001, Jeff Trawick wrote:

> Marc Slemko <marcs@znep.com> writes:
> 
> > Erm... why would we be unable to read the data?
> > 
> > I have the exact same CGI.  If I have it output, for example, 6k of data
> > there is never a content-length.  If I have it output, for example, 10k of 
> > data, there is.
> 
> is there some buffering or pausing going on which affects the
> length=6k case?  I get a content-length for lengths up to 32K or so.

What platform?  I'm FreeBSD / prefork.  

As I said, ap_set_content_length gets called, but it just doesn't end up being sent.

marcs@deathbed:~$ GET -e -d http://localhost:8080/~marcs/tests/anylength.cgi?length=8166
Connection: close
Date: Mon, 27 Aug 2001 16:39:49 GMT
Server: Apache/2.0.25-dev (Unix)
Content-Type: text/html; charset=ISO-8859-1

marcs@deathbed:~$ GET -e -d http://localhost:8080/~marcs/tests/anylength.cgi?length=8167
Connection: close
Date: Mon, 27 Aug 2001 16:39:54 GMT
Server: Apache/2.0.25-dev (Unix)
Content-Length: 8167
Content-Type: text/html; charset=ISO-8859-1

marcs@deathbed:~$ GET -e -d http://localhost:8080/~marcs/tests/anylength.cgi?length=1   
Connection: close
Date: Mon, 27 Aug 2001 16:40:46 GMT
Server: Apache/2.0.25-dev (Unix)
Content-Type: text/html; charset=ISO-8859-1


Hrmph.  The truss of a CGI request looks pretty scary...


Mime
View raw message