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

Skip Montanaro skip at pobox.com
Fri Jun 1 20:21:54 CEST 2001


    Mark>     out_file.write('Content-type=application/octet-stream\n\n')

Should be

    Content-type: application/octet-stream

(colon, then space instead of equals).

-- 
Skip Montanaro (skip at pobox.com)
(847)971-7098




More information about the Python-list mailing list