Converting a curl to python requests

Akki picture Akki · Mar 5, 2017 · Viewed 14.8k times · Source

I want to convert my folowing CURL request to a python POST requests so I can use it with the requests library

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

Can anyone help in this case ?

Answer

MouIdri picture MouIdri · Mar 21, 2018

You have this utilities :

https://curl.trillworks.com/

I use it all the time. A example attached. enter image description here