Re: serving html from a python script in IE

2007-11-01 Thread bluegray
> If you take out the space between text/html and ; it works just fine. > > (In other words, there is no mime-type "text/html ") Thanks! That did it. What a difference a space makes ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: serving html from a python script in IE

2007-11-01 Thread J. Cliff Dyer
bluegray wrote: > I'm writing a script that outputs html. It works fine in Firefox, > however, IE wants to download the file instead of displaying the > output. I keep getting the file download dialog instead of the html > page. > > I am doing something like this: > > print 'Content-Type: text/html

Re: serving html from a python script in IE

2007-11-01 Thread Richard Brodie
"bluegray" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > print "Content-Type: application/xhtml+xml That's your problem. You can't use that Mime type because IE doesn't support XHMTL. No "appendix C" hair splitting comments, please. -- http://mail.python.org/mailman/listinfo

Re: serving html from a python script in IE

2007-11-01 Thread bluegray
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 p

Re: serving html from a python script in IE

2007-11-01 Thread kyosohma
On Nov 1, 9:52 am, bluegray <[EMAIL PROTECTED]> wrote: > I'm writing a script that outputs html. It works fine in Firefox, > however, IE wants to download the file instead of displaying the > output. I keep getting the file download dialog instead of the html > page. > > I am doing something like t

serving html from a python script in IE

2007-11-01 Thread bluegray
I'm writing a script that outputs html. It works fine in Firefox, however, IE wants to download the file instead of displaying the output. I keep getting the file download dialog instead of the html page. I am doing something like this: print 'Content-Type: text/html ; charset=utf-8\nCache-Contro