Re: cgi file limit size?



i am using these modules:

import cgi,time
import cgitb; cgitb.enable()

iis webmapping now works with -U (key was to remove '-u' from the
grouping of "s"'s:
C:\Python25\python.exe -u "%s %s"

here is the form html code:
<form action="upfile.py" method="POST" enctype="multipart/form-
data">Server name:<INPUT type="text" name="servername">
<BR>
File name:<input name="file_1" type="file"><br>
<input name="Submit" type="submit" value="Upload File">
</form>

i increased the timeout on the IIS server to 2,200 seconds and i can
now upload a file that is 220 MB in size in about 350 seconds.

if i try to upload a 300 MB file, i get the dreaded CGI bad headers
message,
"CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers."

the headers are always the same:
print "Content-type: text/html\n"
print HTML_TEMPLATE

in the IIS log, i do see http error 400 with sc-win32-status of 64
this link explains 400 errors a little - >http://www.checkupdown.com/
status/E400.html

httperr log shows "BadRequest DefaultAppPool"

this link explains this particular case a little: ->
http://objectmix.com/inetserver/284871-re-sc-status-400-sc-win32-status-64-what-causes.html

.



Relevant Pages

  • Re: CGI under IIS throws away printf on multiple posts.
    ... IIS is not throwing away anything. ... will have to implement in CGI, by taking a server-side lock to prevent the ... session from performing the operation a second consecutive time. ... "application session" (IIS is a high-performance server. ...
    (microsoft.public.inetserver.iis)
  • Re: 404 errors with cgi scripts
    ... the troubleshooting steps already exist. ... In F1 help in IIS ... 404 2 -- fail by Web Service Extension. ... It sounds like this CGI is one of them (it detects that it ...
    (microsoft.public.inetserver.iis)
  • Re: HTTP_AUTHORIZATION header
    ... You can configure IIS to not keep-alive with: ... I have verified that the method of execution of the CGI - GET form, ... Display HTML page in directory A, ...
    (microsoft.public.inetserver.iis.security)
  • Re: Misbehaved CGI application headers
    ... The CGI developer said it was by design. ... response -- so the error message is gone. ... Individual request headers are not terminated by CRLF (according to ... > My application developers cannot fix their Perl code because IIS 6 does ...
    (microsoft.public.inetserver.iis)
  • Re: IIS 6.0 cgi process not running as same user as worker process?
    ... It only controls whether the CGI gets a console window when executing or not ... > It warns that it's inteneded for IIS 4 &5... ... >> elevate privileges (through impersonation), but any other code can only ...
    (microsoft.public.inetserver.iis.security)