Iain King wrote: > 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 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 > > this snippet works (from code I wrote to implement a shoutbox): > > print '''<html> > <head> > <meta http-equiv="refresh" content="0;URL='''+HOME+'''" /> > </head> > <body> > <p>Please wait...</p> > </body> > </html>''' > > I assume your version doesn't work because of the uppercase 'R'. > > Iain
There's a well known phrase about the word 'assume'... Iain -- http://mail.python.org/mailman/listinfo/python-list
