spulec/uncurl

cURL with disabled security certificate check is not parsed properly

Closed this issue · 0 comments

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
)