#extends phd_site #implements respond #attr $Title = "Oleg Broytman's Python Software" #attr $Description = "Broytman Python Demo Socket Servers" #attr $Copyright = 2001 ## #def body_html
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.
Then I realized that the task would be really interesting to implement. I can learn how to use SocketServer or BaseHTTPServer library. So I wrote it myself.
The results are here. To learn sockets and socket servers better I implemented 4 different servers:
You can download them at once: get_request.tar.bz2.#end def $phd_site.respond(self)