/ Software / Python / socket-servers / get_request

Python Demo Socket Servers

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 It was generated on Wed, 01 May 2024 15:31:32 GMT from CheetahTemplate index.tmpl. Some rights are reserved. Read more about technical aspects of the site.