Python Forum
Handle http protocol - Printable Version

+- Python Forum (
+-- Forum: Python Coding (
+--- Forum: Networking (
+--- Thread: Handle http protocol (/thread-33979.html)

Handle http protocol - JohnnyCoffee - Jun-15-2021

I am designing a web server for python without using the module ( http.server ), as it is not recommended for production environment. I would like to know how I can access the protocol and its variables or data, in order to manipulate it ?

RE: Handle http protocol - ndc85430 - Jun-20-2021

Why are you writing your own web server? What do existing ones not do that you need? In any case, if you actually have to, then have you read the relevant RFCs to understand the format of the HTTP messages? Also, do you know the details of the underlying protocol (which may or may not be TCP, depending on which HTTP version this is for)? These are the things that come to my mind immediately, though there might be others.