I'm trying to communicate with my service over http. My service is working with: server.py from multiprocessing.managers import BaseManager class RemoteManager(BaseManager): pass manager = RemoteManager(address=('', 8080)) manager.get_server().serve_forever() I communicate with the service from other Python scripts like so: # example.py manager = RemoteManager(address=('127.0.0.1', 8080) manager.connect() client = manager.MyHandler() Now the server is up, and client can access stuff inside the MyHandler class, now I want to be able to process from the same server the command curl http://127.0.0.7:8080 and my MyHandler will respond with some text. At the moment running curl just throws an error: curl: (1) Received HTTP/0.9 when not allowed But how can I capture unknown data that comes to example.py? Continue reading...