Python CGI not working in Firefox but does in IE
Harlin Seritt
harlinseritt at yahoo.com
Wed Feb 22 08:40:51 EST 2006
I have this Python CGI script running:
[CODE]
print 'Content-type: text/plain\n'
location = 'http://server1.com'
page = '''
<html>
<head>
<meta http-equiv="Refresh" content="0; URL='''+location+'''">
</head>
<body></body>
</html>'''
print page
[/CODE]
It works fine and redirects perfectly when using Internet Explorer but
only shows this in a Firefox window:
[OUTPUT]
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=http://server1.com">
</head>
</html>
[/OUTPUT]
Is there anything I can do to fix this?
Also, is there a redirect command somewhere within Python CGI that can
get this done instead as I would actually prefer to have the CGI code
execute this rather than depend on the HTML to do it.
Thanks,
Harlin Seritt
More information about the Python-list
mailing list