0
它确实应该是或者是否存在某些问题?Python请求在POST请求中发送Content-Length 0
我只是做它,因为它是在doc这样提到:
response = requests.post(path, client_id=self.app_id, client_secret=self.app_secret, grant_type="client_credentials")
的response.request.headers
输出为
{'Content-Length': '0', 'User-Agent': 'python-requests/2.4.1 CPython/2.7.5 Darwin/13.3.0', 'Connection': 'keep-alive', 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate'}
什么错误我在做什么?