asmcos / requests

A golang HTTP client library. Salute to python requests.
Other
665 stars 90 forks source link

How can I disable Cert Verification? #28

Open microanees opened 2 years ago

microanees commented 2 years ago

Is there a knob equivalent to requests.get('https://kennethreitz.com', verify=False)

to address this for test environments.. x509: certificate signed by unknown authority

meoww-bot commented 1 year ago

Hi, I already finish it at https://github.com/meoww-bot/requests

I've tested it, cause these's a website with self sign ssl certificate I need login with golang.

example:

skipssl := new(requests.InsecureSkipVerify)

req := requests.Requests(skipssl)

// do your requests
...