Python HTTP Server/Client: Remote end closed connection without response error
问题 I made simple HTTP Server using BaseHTTPRequestHandler . The problem is, that when I want to post some data using requests from client, I get ConnectionError . I did simple request from requests lib documentation. Also interesting thing is, that HTTP Server will receive data from client and print it to console. I don't understand how its possible. Client: def post_data(): """Client method""" json_data = { 'sender': 'User', 'receiver': 'MY_SERVER', 'message': 'Hello server! Sending some data.'