Calculating Content-Length with Python
Calculating Content-Length with Python Question: I’m trying to make a post, however each time I did it, I would get a 411 response error. I’m using the requests library in python. In [1]: r.post(url) Out[1]: <Response [411]> So then I specified the content length h = {‘content-length’ : ‘0’} and try again. In [2]: r.post(url,h) …