[Web-SIG] sending multi-part responses from the web server

Lloyd Kvam python at venix.com
Wed Mar 16 21:05:25 CET 2005


For anyone who is interested, multipart responses do not work with
Internet Explorer or Safari.  I am now back to doing things the
old-fashioned way with separate download and html responses with simple
"hand-built" headers


On Mon, 2005-03-14 at 09:29, Lloyd Kvam wrote:
> I have a web site that generates a document for download "on the fly". 
> It is requested through a submit button.  I also generate the response
> html along with the download.  To create the multi-part response I used
> the email modules MIME support.
> 
> Everything works, but to prevent quoted-printable encoding of the HTML,
> I sued this line of code:
>         body.add_payload(MIMEText(
> 		html,		# this is the unicode response
> 		_subtype='html',
> 		_charset=None))
> body is the MIMEMultipart container.
> 
> Should I have used a different MIME module or a different approach?
-- 

Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358

voice:	603-653-8139
fax:	320-210-3409
-- 
Lloyd Kvam
Venix Corp



More information about the Web-SIG mailing list