curl - 将curl 转换为python 请求

标签 curl python-requests artifactory

我想将以下 CURL 请求转换为 python POST 请求 所以我可以将它与请求库一起使用

curl -uadmin:AP31vzchw5mYTkB1u3DhjLT9Txj -T <PATH_TO_FILE> "http://MyArtifactory-Server/artifactory/OurRepo/<TARGET_FILE_PATH>"

有人可以帮忙解决这种情况吗?

最佳答案

你有这个实用程序:

https://curlconverter.com

我一直用它。附上一个例子。 enter image description here

关于curl - 将curl 转换为python 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42604586/

相关文章:

c++ - 如何在 `conanfile.txt` 中有条件地指定要求?

maven - Artifactory 不删除唯一快照

mysql - 无法在 Docker 上加载 Artifactory

php - 使用 cURL 执行 SOAP

linux - curl 命令获取时间

curl - Tor & curl ​​: Can't complete SOCKS5 connection to 0. 0.0.0:0

python - 使用请求模块的 HTTP 删除消息

apache - 黑客企图,进程在 'apache' 用户下运行

python - 处理 HTTP post 中的重复键以指定多个值

python-2.7 - 使用 Python requests 库将数据发布到网站