cgi and headers

kalin mintchev kalin at el.net
Sun Aug 12 17:04:13 EDT 2007


nevermind...  i'm not sure why the xml header didn;t work before and now
it does...  thanks....

>
> 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?
>
> thanks....
>
>
>





More information about the Python-list mailing list