Re: cgi file limit size?
- From: davidj411 <davidj411@xxxxxxxxx>
- Date: Thu, 9 Apr 2009 14:25:32 -0700 (PDT)
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
.
- References:
- cgi file limit size?
- From: davidj411
- cgi file limit size?
- From: R. David Murray
- cgi file limit size?
- Prev by Date: How to import a module so that the current globals are available to the module?
- Next by Date: Re: Why is it that *dbm modules don't provide an iterator? (Language design question)
- Previous by thread: cgi file limit size?
- Next by thread: Some test fail on my new Python 2.6
- Index(es):
Relevant Pages
|