You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by co...@apache.org on 1999/01/04 21:34:55 UTC

Re: mod_cgi/1960: Apache - broken CGI interface?

[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]


Synopsis: Apache - broken CGI interface?

State-Changed-From-To: open-closed
State-Changed-By: coar
State-Changed-When: Mon Jan  4 12:34:52 PST 1999
State-Changed-Why:

On re-reading this, I think I see what's going on.
Yes, a CONTENT_LENGTH metavariable MUST be supplied by
a CGI/1.1-compliant server when starting a script and
supplying a content-body.  It is based on HTTP/1.0 in
this regard, and HTTP/1.1 for bodies that aren't
sent with chunked transfer-encoding.  Chunked T-E isn't
supported by CGI/1.1 at all.  It looks as though something
is trying to hand a chunked body to a CGI script, and
that's bogus.  For CGI/1.1, if the server passes a body,
then it must also pass a CONTENT_LENGTH metavariable.