Re: [us...@httpd] Buffering of huge POSTs to CGI and alternatives

2010-11-16 Thread Steven Simpson
On 15/11/10 19:00, Jeff Trawick wrote: > On Mon, Nov 15, 2010 at 4:43 AM, Steven Simpson wrote: >> Can [CGI/Apache] deal >> with huge message bodies, such as those exceeding virtual RAM, by saving >> to disc (for example)? > mod_cgi/mod_cgid: request will fail with 411 if client doesn't send > con

Re: [us...@httpd] Buffering of huge POSTs to CGI and alternatives

2010-11-15 Thread William A. Rowe Jr.
On 11/15/2010 6:30 PM, Nick Kew wrote: > > The CGI spec is clear: CONTENT_LENGTH is guaranteed; > EOF is NOT guaranteed, so reading to EOF is a bug and > means the CGI can only ever "work" by coincidence! Ah yes, pre-HTTP/1.1, silly me. > CGI pre-dates chunked encoding (as do reports of the > d

Re: [us...@httpd] Buffering of huge POSTs to CGI and alternatives

2010-11-15 Thread Nick Kew
On Mon, 15 Nov 2010 15:25:18 -0600 "William A. Rowe Jr." wrote: > This is really a flaw in your CGI; No it isn't! The CGI spec is clear: CONTENT_LENGTH is guaranteed; EOF is NOT guaranteed, so reading to EOF is a bug and means the CGI can only ever "work" by coincidence! CGI pre-dates chunked

Re: [us...@httpd] Buffering of huge POSTs to CGI and alternatives

2010-11-15 Thread Jeff Trawick
On Mon, Nov 15, 2010 at 4:25 PM, William A. Rowe Jr. wrote: > On 11/15/2010 3:43 AM, Steven Simpson wrote: >> >> I intend to have a CGI program extract a form field and deliver this >> data to an external system, but the field in question is likely to be >> huge.  The server can't invoke the progr

Re: [us...@httpd] Buffering of huge POSTs to CGI and alternatives

2010-11-15 Thread William A. Rowe Jr.
On 11/15/2010 3:43 AM, Steven Simpson wrote: > > I intend to have a CGI program extract a form field and deliver this > data to an external system, but the field in question is likely to be > huge. The server can't invoke the program until it knows the length of > the request body, in order to se

Re: [us...@httpd] Buffering of huge POSTs to CGI and alternatives

2010-11-15 Thread Jeff Trawick
On Mon, Nov 15, 2010 at 4:43 AM, Steven Simpson wrote: > Hi, > > I intend to have a CGI program extract a form field and deliver this > data to an external system, but the field in question is likely to be > huge.  The server can't invoke the program until it knows the length of > the request body

[us...@httpd] Buffering of huge POSTs to CGI and alternatives

2010-11-15 Thread Steven Simpson
Hi, I intend to have a CGI program extract a form field and deliver this data to an external system, but the field in question is likely to be huge. The server can't invoke the program until it knows the length of the request body, in order to set CONTENT_LENGTH in the program's environment. If