Jun-27-2021, 05:09 PM
Well, think about it: when you make an HTTP request, you do so to a server, don't you? So, you need to be running an HTTP server that will listen for requests and do what you want with them. There are a number of web frameworks that allow you to write web applications that handle HTTP requests and return responses - Flask, Django, Bottle, CherryPy are some of them. These often have a server you can use while developing, but may not be recommended for production use. In those cases, you'll want to run your application using a WSGI server (for example, Gunicorn is one available for UNIX, but there are others).