H
Harlin Seritt
I have this Python CGI script running:
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
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
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