Expand|Select|Wrap|Line Numbers
- 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
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