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

Adonis Vargas deltapigz at telocity.com
Sun Jul 29 12:35:42 EDT 2001


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>
          """)

Any help would greately be appreciated.

Adonis





More information about the Python-list mailing list