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
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
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
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
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:/
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