12 Jul
2001
12 Jul
'01
12:20 p.m.
* Oleg Broytmann <phd@phd.fep.ru> [010712 09:51]: <snip nc example>
Once a colleague asked me how to peep what headers a browser sends to a server. I suggested to write a minimal server that would store a request to a file. The results in pure Python:
http://phd.pp.ru/Software/Python/socket-servers/get_request/ Faster mirror: http://www.crosswinds.net/~phd2/Software/Python/socket-servers/get_request/
Nice :-) While we're on the subject, you could also use Shane's tcpwatch http://www.zope.org/Members/hathawsh/tcpwatch Or use one of several widely available sniffer; on linux, tcpdump is the most common. I really like ngrep too. seb