phdru.name / Software / Python / socket-servers / get_request
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.
This is the page https://phdru.name/Software/Python/socket-servers/get_request/. It was generated on Tue, 13 Jul 2021 21:38:13 GMT from CheetahTemplate index.tmpl. Some rights are reserved. Read more about technical aspects of the site.