httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: POST without Content-Length
Date Sat, 07 Aug 2004 22:49:59 GMT
* Roy T. Fielding <fielding@gbiv.com> wrote:

> >>> A CGI script therefore should never trust Content-Length, but just 
> >>> read
> >>> stdin until it meets an EOF.
> >>
> >> That is well-known to fail in CGI.  A CGI must use Content-Length.
> >
> > Hmm. any pointers where this is specified? I didn't have any problems 
> > with
> > this until now - but in trusting the C-L variable.
> 
> CGI doesn't require standard input to be closed by the server -- Apache
> just happens to do that for the sake of old scripts that used fgets to
> read line-by-line.  Other servers do things differently, which is why
> reading til EOF does not work across platforms.

Oh well :-(
I've glanced over the spec again.

...good that's only an outdated draft :^)

sorry for the confusion.

nd
-- 
>kann mir jemand sagen, was genau @-Domains sind?
Ein Mythos. Ein Werbetrick. Verarsche. Nenn es wie du willst...

                 -- Alexandra Buss und Björn Höhrmann in dciwam

Mime
View raw message