cgi and mime type

Chris Liechti cliechti at gmx.net
Tue Feb 12 15:58:21 EST 2002


aseem at neurobs.com (A M) wrote in news:ed6d1c1a.0202121225.295ca950
@posting.google.com:

> fp = open('fp.exe')
> print fp.read();

use open(name, 'rb') here. binary mode is important when the cgi runs 
on win32. not sure if this fixes your other problem though...

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list