httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Brown <mbr...@OpenMarket.com>
Subject Re: timeouts in CGI POST reading
Date Thu, 20 Jun 1996 21:07:28 GMT

Rob Hartill says:

    We've got some CGI scripts that accept file uploads but we also have
    users in lots of countries whose uploads don't always make it the
    first time... We need a way to signal the scripts to clean up and 
    abort the process rather than attempt to process only part of the data.

I believe your script should compare the number of bytes read from
stdin to the value of CONTENT_LENGTH.  If they differ, your
script should assume that the upload has failed.

    --mark



Mime
View raw message