Re: How to find uploaded data size from content-length



In article <Xns97AA916DBEDB4castleamber@xxxxxxxxxxx>,
john@xxxxxxxxxxxxxxx says...
You mean it reads until it detects that the max size has been reached?
Yes, that's what I expect, since one can keep streaming bytes, and only
when the max has been reached the script knows it was too much.


When CONTENT_LENGTH not given during request, server has to compute it
from real data received in STDIN : so, in this case how does CGI.pm is
able to stop receiving to STDIN precisely when $CGI::POST_MAX is reached
?

Not sure it's able to do that. What do you think ?
.



Relevant Pages

  • Re: existence and size of client file
    ... to provide a FORM to the client. ... executed after the POST request reaches your server. ... The client sends an HTTP POST request, which contains the URL, the ... Then the server has inkove the CGI script so that the CGI script can ...
    (comp.lang.perl.misc)
  • Re: FAQ Topic - How do I run a server side script? (2009-09-16)
    ... FAQ Topic - How do I run a server side script? ... an HTTP request", which appears to have been something that has needed ... I see that Safari 2.x does indeed fail to create an image element with `new Image`; instead, creating an object with `src`, `width` and `height` properties, but not those from `HTMLImageElement` or any of its "ancestor" interfaces. ...
    (comp.lang.javascript)
  • Re: trouble measuring filesize of gzipped data
    ... >> from your server. ... >> it doesn't have any effect on your PHP scripts when they ... > passes it to my script. ... another website, that request isn't coming from Apache, it's ...
    (comp.lang.php)
  • Re: Preventing multiple invocations of script from accessing the same file
    ... > I am writing a CGI script using the Bourne shell. ... Your script needs to call a simple program that opens a connection to ... the server, passes the request to the server, waits for the response, ... The server should be written to receive a request, ...
    (comp.os.linux)
  • Re: Preventing multiple invocations of script from accessing the same file
    ... > I am writing a CGI script using the Bourne shell. ... Your script needs to call a simple program that opens a connection to ... the server, passes the request to the server, waits for the response, ... The server should be written to receive a request, ...
    (comp.unix.shell)