471,330 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

cgi and headers

hi there...

i'm starting to work with python cgi scripts using ajax.
one problem i have is that the cgi module doesn;t do (apparently) anything
without the -- print "Content-type: text/html\n" -- line in the script.

the issue is that the output of the script has to be an xml file and not
an html. it's not really a problem for any normal browser but the retarded
explorer thing doesn;t process the xml unless it gets back the xml header.

so my scripts work fine on mozilla but not in explorer because of the
missing xml header.

what would be the correct solution for this?


Aug 12 '07 #1
0 728

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

71 posts views Thread by Christopher Benson-Manica | last post: by
1 post views Thread by stuart | last post: by
3 posts views Thread by Jacky | last post: by
1 post views Thread by Ale News | last post: by
2 posts views Thread by fhtino | last post: by
5 posts views Thread by Milos Prudek | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.