www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <ad...@rowe-clan.net>
Subject Re: os-windows/7438: CGI POST doesn't work
Date Tue, 20 Mar 2001 18:20:03 GMT
From: "Will Sutton" <willsutton@hotmail.com>
Sent: Tuesday, March 20, 2001 4:46 AM

> CGI programs (C++, has work successfully in pervious versions of apache and other web
protocols and across different platforms)
have stopped being able to read the cin correctly.  Cout works, and (reputedly) cerr doesn't
go to an error log.
> cin.read(data, CONTENT_LENGTH) fails, although CONTENT_LENGTH is set correctly.

Because it doesn't apply to unix, the unix lists wouldn't pay it much attention.
Win32 _text_ files have CR/LF delimiters.  If the data includes 25 newlines, that
is 25 cr's and 25 lf's.  Since the VC compiler 'hides' the cin cr-lf pair as a
single lf, you just _lost_ 25 characters of cin.

Change the cin/stdin semantic to Binary data, or stop trusting content_length

View raw message