【发布时间】:2021-04-28 03:29:05
【问题描述】:
我有一个 curl 命令。我想在 python 3 中执行后获取响应。
curl https://api.abc.com/targets/targetID\
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: JWT PROBELY_AUTH_TOKEN"
如何在 Python 中执行脚本并获得响应?
【问题讨论】:
-
这能回答你的问题吗? Python equivalent of Curl HTTP post
标签: python curl libcurl pycurl