Re: Alternative to python -u for binary upload to cgi on windows?

2007-12-22 Thread cameron . walsh
On Dec 14, 6:58 pm, Cameron Walsh <[EMAIL PROTECTED]> wrote: > Hi all, > > Using a pythoncgiscript such as the one below to handle uploaded > binary files will end up with atruncatedfile (truncates when it hits > ^Z) on Windows systems. On linux systems the code works and the file is > nottruncate

Alternative to python -u for binary upload to cgi on windows?

2007-12-14 Thread Cameron Walsh
Hi all, Using a python cgi script such as the one below to handle uploaded binary files will end up with a truncated file (truncates when it hits ^Z) on Windows systems. On linux systems the code works and the file is not truncated. One solution for Windows is to use the -u flag, i.e. #!C:\Py

Re: CGI on Windows

2005-05-16 Thread Jason Drew
Rainer Mansfeld wrote: > Jason Drew wrote: > > I believe you're experiencing a bug that I also encountered, and for > > which there is a patch. See: > > http://sourceforge.net/tracker/?group_id=5470&atid=105470&func=detail&aid=1110478 > > > > Fixing os.py as described in the patch fixed all my CGI

Re: CGI on Windows

2005-05-16 Thread Rainer Mansfeld
Jason Drew wrote: > I believe you're experiencing a bug that I also encountered, and for > which there is a patch. See: > http://sourceforge.net/tracker/?group_id=5470&atid=105470&func=detail&aid=1110478 > > Fixing os.py as described in the patch fixed all my CGI-related > problems. Hope it does f

Re: CGI on Windows

2005-05-16 Thread Jason Drew
I believe you're experiencing a bug that I also encountered, and for which there is a patch. See: http://sourceforge.net/tracker/?group_id=5470&atid=105470&func=detail&aid=1110478 Fixing os.py as described in the patch fixed all my CGI-related problems. Hope it does for you too! Jason -- http:/

CGI on Windows

2005-05-16 Thread Rainer Mansfeld
Hi all, I'm running the following script as a minimalistic CGI server on Windows ME: httpd.py from BaseHTTPServer import HTTPServer from CGIHTTPServer import CGIHTTPRequestHandler server = HTTPServer(("", 8080), CGIHTTPRequestHandler) server.serve_forever() This works