[Golang] How to skip verifying https certificate

Priesdelly
May 5, 2021

--

Just a note, Sometimes when I call API in the dev environment maybe I have to connect with a bad HTTPS self-signed certificate or the wrong certificate

When using the global http command just set the TLSClient config to skip like the code below

When using the spare http client command just set TLSClientConfig to http object like the code below

Thank you this solution from Matthias and cyberdelia via How to do a https request with bad certificate

--

--