Question...
Adonis Vargas
deltapigz at telocity.com
Tue Jul 31 18:57:02 EDT 2001
how come this code does not seem to popup on any broswer i attempt to
send HTML data to:
(c, a) = s.accept()
c.send('HTTP 200 OK\n')
c.send('Content-Type: text/html\n')
c.send('')
print RED + "CONNECT->%s"%a[0] + RESET
d = c.recv(256)
c.send("""
<HTML>
<HEAD>
<TITLE>Redirecting...</TITLE>
<META http-equiv="refresh" content="0;
url=http://www.python.org/">
</HEAD>
<BODY>
</BODY>
</HTML>\n
""")
c.close()
*basic idea to redirect a broswer.
any help would greatly be appreciated.
Adonis
More information about the Python-list
mailing list