I am trying to manage some HTTP Post requests being received on my computer. The post requests are from an apache server (website) which is being hosted on the same computer. How can I manage them using python, preferably without using any 3rd party modules?
Advertisement
Answer
If it is very lightweight and does not require many things, you can use the built-in socket module and create a server yourself (https://docs.python.org/3/library/socket.html). If it requires things like security then Flask or Django would be a good choice (https://flask.palletsprojects.com/en/1.1.x/) (https://www.djangoproject.com/).