spulec / uncurl

A library to convert curl requests to python-requests.
Apache License 2.0
615 stars 96 forks source link

cURL with disabled security certificate check is not parsed properly #24

Closed Zenulous closed 5 years ago

Zenulous commented 5 years ago

When submitting a request to a website with an expired certificate, a --insecure flag is passed in the request, This flag is not properly parsed, as is evident in this example:

uncurl.parse(curl "http://" --insecure)

This returns the following:

requests.get("http://",
    headers={},
    cookies={},
{}verify=False
)

It should instead return:

requests.get("http://",
    headers={},
    cookies={},
    verify=False
)