Sending data Curl/Json in Python

前端 未结 4 1634
遥遥无期
遥遥无期 2021-01-13 06:13

I`m trying to make those 2 requests in python:

Request 1:

 curl -X POST -H \"Content-Type: application/json\" -d \'{ \"auth_token\": \"auth1\", \"w         


        
4条回答
  •  自闭症患者
    2021-01-13 06:54

    Well sure, using Python-Requests which is a Python library for sending requests like Curl. You can take a look at the Complicated Post Requests section.

    Or, if you'd like to use curl inside of Python, you can use pyCurl.

提交回复
热议问题