By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,941 Members | 1,789 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,941 IT Pros & Developers. It's quick & easy.

Run python script in Firefox browser

P: 3
I need to run python script in firefox browser. I followed the steps mentioned in this site (Configuring the Apache Web Server to Run Python on Windows) to configure apache to run python scripts in webbrowser. I am able to run the python script in IE. In Firefox it's shows the code instead of output. I don't know it's browser compatibility or I need to change something for browser detail in httpd.conf file. Somebody please help me.
Jan 21 '09 #1
Share this Question
Share on Google+
2 Replies


P: 3
Its a mime-type problem. Add following code.
print "Content-type: text/html"
It will work in firefox.
Jan 22 '09 #2

P: 2
hi,

can you let me know how you are accessing the python script in firefox?

Thanks
Ravi K
Jan 27 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.