httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Richards <paul.richa...@gmail.com>
Subject Re: [users@httpd] CGI response using chunked Transfer-Encoding, Apache erroneously adding Content-Length
Date Sun, 04 Sep 2005 14:35:47 GMT
Cool well I managed to get an NPH version working just fine.  Thanks.  :)

I'm interested now as to what the official behaviour should be.  Is it
invalid for a non-NPH script to set Transfer-Encoding to "chunked"? 
The paragraph you quote from the CGI spec doesn't mention any headers
in particular.


On 9/3/05, André Malo <nd@perlig.de> wrote:
> * Paul Richards wrote:
> 
> > Hi,
> > I'm attempting to write a CGI script response which has the
> > Transfer-Encoding header set to "cunked".  Apache is buffering the
> > output and erroneously adding a Content-Length header which is
> > forbidden by the HTTP spec [1].
> 
> Well, this is a bad thing.
> The CGI spec (RFC 3875) says:
> 
> | The script MUST NOT return any header fields that relate to
> | client-side communication issues and could affect the server's
> | ability to send the response to the client.  [...]
> 
> I'd suggest using an nph-script.
> 
> nd
> --
> Das, was ich nicht kenne, spielt stückzahlmäßig *keine* Rolle.
> 
>                                    -- Helmut Schellong in dclc
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 


-- 
Paul Richards

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message