"Chris Gonnerman" <chris.gonnerman at usa.net> writes: > Andrew was right on the money regarding the print statement > and the extra \n it adds. I generally do it like this, > though, *depending* on that extra newline. On my Apache > server under Python 1.5.2, this works great. I didn't need > the \r's either. Just FYI, but including CR ('\r') would be technically more accurate, as HTTP (and the majority of text based IETF network protocols) define CRLF as the official line terminator (except for individual entity blocks which can have locally defined terminators). But most client implementations will be written to just look for the LF ('\n') and strip any trailing CR or LF. -- -- David -- /-----------------------------------------------------------------------\ \ David Bolen \ E-mail: db3l at fitlinxx.com / | FitLinxx, Inc. \ Phone: (203) 708-5192 | / 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \ \-----------------------------------------------------------------------/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4