How do I return binary data from a python CGI called from CGIHTTPServer?

Alex Martelli aleaxit at yahoo.com
Fri Jun 1 18:58:52 EDT 2001


"Mark Wright" <mwright at pro-ns.net> wrote in message
news:f9ff3f62.0106011427.6243e5e9 at posting.google.com...
    ...
> But my original problem/question remains: how does a CGI program
> return binary data on windows?  Is it even possible?  The problem is

python.exe must be run with option -u, to have binary standard input
and output streams, rather than text ones as it has by default.


Alex






More information about the Python-list mailing list