Python Forum

Full Version: Handle http protocol
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 ?
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.