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
Harlin Seritt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[CODE]
print 'Content-type: text/plain\n'
That's your problem. You've said text/plain when you meant text/html.
--
http://mail.python.org/mailman/listinfo/python-list
Harlin Seritt wrote:
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
Ack... I'm an idiot... Thanks Richard -- You're the Man!
--
http://mail.python.org/mailman/listinfo/python-list
Harlin Seritt wrote:
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.
http://groups.google.com/group/comp.lang.python/msg/6e929fab0d414b2c
shows