muslu / reqs2curl

Form Python requests's request to CURL command.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Author: Muslu YÜKSEKTEPE @Makdos

for Python 3

reqs2curl

Form Python requests's request to CURL command.

Usage:

 payload = {
    'access_token': 'access_token',`
    "data": {
        "id": 123213,
    }
 }

 dd = requests.post(url, data=payload, verify=False)
 print(dd)

 import reqs2curl
 print(reqs2curl.convert_curl(dd.request, verify=False))

About

Form Python requests's request to CURL command.


Languages

Language:Python 100.0%