4 ms·
I am bother by the desire to get smaller and smaller. A secure implementation will have a lot of code to verify incoming data and handle exceptions. It is fun t
by yeukhon 13y ago
I am bother by the desire to get smaller and smaller. A secure implementation will have a lot of code to verify incoming data and handle exceptions.
It is fun to learn and implement HTTP server from the raw socket module (I did that once for my security project in my computer security class too), but if you are just looking for a simple server that you can handle GET and POST look into bottle.py
A single file / pip install write into setup.py and you are good to go.
This I consider as educational, which I assume is the case by the desire to go smaller and implementing such socket server.