Yes, I have all the necessary shebang and imports. As I said, the
script works fine in Firefox. It's something specific to IE that is
the problem. The following is a test script that also causes IE to
download instead of displaying the page. It works fine elsewhere. I
also did some searching, and python scripts on other servers seem to
work in IE. So it's maybe something specific to my server. I have no
idea what though.
#!/usr/bin/python
print "Content-Type: application/xhtml+xml;charset=utf-8\nCache-
Control: no-cache\n"
print '''<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>An XHTML 1.0 Strict standard template</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
</head>
<body>
<p> Your HTML content here </p>
</body>
</html>'''
Yes, I have all the necessary shebang and imports. As I said, the
script works fine in Firefox. It's something specific to IE that is
the problem. The following is a test script that also causes IE to
download instead of displaying the page. It works fine elsewhere. I
also did some searching, and python scripts on other servers seem to
work in IE. So it's maybe something specific to my server. I have no
idea what though.
#!/usr/bin/python
print "Content-Type: application/xhtml+xml;charset=utf-8\nCache-
Control: no-cache\n"
print '''<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>An XHTML 1.0 Strict standard template</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
</head>
<body>
<p> Your HTML content here </p>
</body>
</html>'''