Slightly off-topic... (sending HTML data through a Python socket)

Erik Max Francis max at alcyone.com
Sun Jul 29 13:30:51 EDT 2001


Adonis Vargas wrote:

> I am attempting to send HTML data back to a browser which connected to
> X
> port. I have goen over the the HTML RFC and just can not get it to
> work.
> What I am attempting to do is send a redirect back to the browser. So
> far I have something as follows:
> 
> c.send("""
>           <HTML>
>           <HEAD>
>           <META HTTP-EQUIV=\"Refresh\"
> Content=0;Host=\"http://www.python.org/\">"
>           </HEAD>
>           </HTML>
>           """)

The meta directive should read

    <meta http-equiv="refresh" content="0; url=http://www.python.org/">

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ An undevout astronomer is mad.
\__/ Edward Young
    The laws list / http://www.alcyone.com/max/physics/laws/
 Laws, rules, principles, effects, paradoxes, etc. in physics.



More information about the Python-list mailing list