Question: CGI script returning binary data from a POST form submit

Charlie Taylor charlie at
Tue Nov 18 23:21:05 CET 2003

I'm having trouble passing binary data back from a python CGI script when a
POST is used to send FORM data to a Windows Server.

In this case, I've used all of the "import msvcrt" approaches and while it
seems to work fine for images, passing back an excel spreadsheet
('Content-Type: application/') is just not working unless I
submit the FORM with a GET.

Any hints would be greatly appreciated.

More information about the Python-list mailing list