W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > January to April 1996

Re: hallam@w3.org: Netscape Bug or KeepAlive Feature ?

From: Brian Behlendorf <brian@organic.com>
Date: Mon, 4 Mar 1996 18:43:11 -0800 (PST)
To: Lou Montulli <montulli@mozilla.com>
Cc: Andy Norman <ange@hplb.hpl.hp.com>, http-wg%cuckoo.hpl.hp.com@hplb.hpl.hp.com
Message-Id: <Pine.SGI.3.91.960304183723.20748B-100000@fully.organic.com>
On Mon, 4 Mar 1996, Lou Montulli wrote:
> The extra CRLF is sent to fix bugs in cgi programs.  The
> problem stems from the use of PERL to parse cgi input.
> If you use a getline function it will only return data
> at every CRLF boundary.  If browsers don't send a final
> CRLF at the end of the post data, many cgi programs will
> never get the data since the post data does not normally
> contain a CRLF at the end.  

Perl's getline (or <STDIN>, etc) uses both CRLF or EOF - when a server is
receiving POST data, and it has received as many bytes as the content-length
header says it should have received, doesn't the server close the stdin pipe
to the CGI script?  Or is it left up to the CGI script to start responding
autonomously? 

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  brian@hyperreal.com  http://www.[hyperreal,organic].com/
Received on Monday, 4 March 1996 18:42:12 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:31:48 EDT