httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: how the heck do you set content-length on printenv?
Date Mon, 16 Feb 1998 06:57:00 GMT
Just allocate a chunk of memory and write into it until you know how big
it is.  If your preallocation is too small just allocate more, and more
and more. 

Dean

On Sun, 15 Feb 1998, Marc Slemko wrote:

> I'm trying to make a printenv-like Apache module. 
> 
> I want it to be able to do persistent HTTP/1.0 connections, so I need a
> content-length.
> 
> One of the things in the output is content-length.
> 
> Grrrrrrrr!
> 
> Yea, yea, pad with spaces.  It just ends up being lame.  Aha.  Guess I can
> zero-pad instead.  That's legal isn't it?
> 
> Why am I doing this?  Because I think that is what webbench uses for
> dynamic content and I am trying to convince ZiffDavis to include an Apache
> module in the API test.  Don't know if they will or not, but just in
> case...
> 
> 
> 


Mime
View raw message