这和邮递员期望的一样。我从邮递员那里把输出保存为卷曲,这样你就可以看到请求了。
curl --location --request POST 'https://soar.xxx.com/acc_xxx_001/investigation/2009' \
--header 'Authorization: 12345' \
--header 'Content-Type: application/json' \
--data-raw '{"categories": ["chats"]}
'然而,这是一个时间安排:
xsoar_api = 'https://soar.xxx.com/acc_xxx_001/investigation/2009'
req = urllib.request.Request(xsoar_api, method='POST')
req.add_header('Content-Type', 'application/json')
req.add_header('Authorization', '12345')
data = {"categories":["chats"]}
data = json.dumps(data)
data = data.encode()
with urllib.request.urlopen(req, data=data) as response:
the_page = response.read()错误:
urllib.error.URLError: <urlopen error [Errno 110] Operation timed out>来自同一台机器……
发布于 2022-09-04 18:43:45
无视,我找到了解决办法。
我的网页地址是面向公众的,我的码头集装箱无法击中它.我必须使用服务器地址。
https://stackoverflow.com/questions/73561971
复制相似问题