发请求,返回 200,但是 response 是空的,这是为什么

import http.client
import urllib.parse
params = urllib.parse.urlencode({"alarmId":"10-40-226.108-5117-4f5b-97b9-000000AAA1",
"alarmTypeCode":"403001","alarmTypeDesc":"描述 1",
"alarmStartTime":1548814332000,"alarmEndTime":1548817200000,
"alarmStatus":0,"relatedCameraIndexCode":"001130","relatedCameraName":"IPDOME-67.100"})
headers = {'Content-Type':'application/json','appKey':'appCF4QCVP','appSecret':1548931565000,
'wjwAuthorization':'2dbc04dea23510f83390f5a749f5e9587d8984b397b3b4b695f3d835069f3544',
'cache-control':'no-cache','User-Agent':'Mozilla/5.0(Windows NT6.1;WOW64;Trident/7.0;rv:11.0) like Gecko',
'Accept-Encoding':'gzip,deflate','Connection': 'Keep-Alive','Accept': '/'}
conn = http.client.HTTPConnection("10.40.226.108", "80", timeout=5)
conn.request("POST", "http://10.40.226.108/eop/services/common/post/audioAlarmReceive", params, headers)

response = conn.getresponse()
data = response.read()
print(data)
conn.close()


↙↙↙阅读原文可查看相关链接,并与作者交流