<HTML><BODY>
Hi all!
I need to make a cgi in python that send mhtml instead of html to client web
browser. With Internet Explorer I save a .mhtm file and then build the
following python script. But this not work. Some suggestion?. All I
need is an example.

print """Content-Type: multipart/related; 
boundary="----=_NextPart_000_0000_01C4C4CB.1CCA6D50"; type="text/html"

------=_NextPart_000_0000_01C4C4CB.1CCA6D50
Content-Type: text/html;
 charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Content-Location:
file://C:\Documents%20and%20Settings\temp\Desktop\test.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR></HEAD>
<BODY><IMG=20
src=3D"file:///C:/Documents%20and%20Settings/temp/Desktop/test.png"></BOD=
Y></HTML>

------=_NextPart_000_0000_01C4C4CB.1CCA6D50
Content-Type: image/png
Content-Transfer-Encoding: base64
Content-Location:
file:///C:/Documents%20and%20Settings/temp/Desktop/test.png

iVBORw0KGgoAAAANSUhEUgAAACIAAAAjCAIAAAB+eU8wAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
jwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAKJJREFU
SEvtVtEOgCAItP//aLM53Q1QkRkPBeuhDDvuDrUrpZxcosA4XB4Yj2AOVALGJnJ4Y9CNiZbPBayW
v8AUyvoQk1WiecD0Qioh8khG+FsyS9g6u1CdDdKq9/MR/EKrYNxpCIMbOVbKa0I797yZmCQytrMh
VR8WjevGKxU13GgB/aIZZaq8+QTMOz8hcXqeOD3Dm3UfrTMMTvApAbMt4w1iaNSBMh1elwAAAABJ
RU5ErkJggg==

------=_NextPart_000_0000_01C4C4CB.1CCA6D50--


"""
</BODY></HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<br>
<hr>
Aniversario 40 de la CUJAE
<br><br>
Visite:
<br><br>
XII Convención Científica de Ingeniería y Arquitectura
<br>
<a href="http://www.cujae.edu.cu/eventos/convencion/">http://www.cujae.edu.cu/eventos/convencion/</a>
</body>
</html>