#! /usr/bin/env python
import socket, sys
port = 70
host = "quux.org"
path = "/"
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))
fd = s.makefile('rw', 0)
fd.write(path + "\r\n")
for line in fd:
sys.stdout.write(line)