If you are interested in implementing the client script that Mike introduced in Python 3.x, you will quickly find that there is no httplib available. Fortunately, the same thing happens with the http.client library.
Otherwise, it is one and the same:
import http c = http.client.HTTPConnection('localhost': 8080) c.request('POST', '/process', '{}') doc = c.getresponse().read() print(doc)
Although this is old, I would have thought that I would publish it, because today I had a similar question, but using a server.
Bradley robinson
source share