On Sep 13, 1:00 am, fishfin <[EMAIL PROTECTED]> wrote: > @ Carl: Yes, I think your right now that I look at it (or at least all > except for the last two lines need to be indented). I'm still not sure > how to send the stuff to the web browser though. Thanks for pointing > it out!
Try reading in the whole HTTP request instead of just the first line. Change line = cfile.readline().strip() to line = cfile.read() And see if that helps. (Outputting the document so that it formats the request well is left as an exercise. Also, as a heads up: in real programs you should never output anything you receive through the network without checking it or escaping it to prevent malicious uses.) Carl Banks -- http://mail.python.org/mailman/listinfo/python-list