Server made using this tutorial as guidance, with added POST request functionality.
Made for the purpose of understanding the HTTP protocol, the HTTP server is built on a TCP server made using Python's socket library.
Wrote an article explaining HTTP and TCP and how this server works.
- In your terminal, navigate outside the main.py file and run:
python main.py
- Visit localhost and append the html file name you want to visit:
http://127.0.0.1:8888/index.html
- First run the server
python main.py
- Then make a POST request using curl
curl -v -X POST http://localhost:8888/index.html