Where do I tell the http client to ignore certificate errors?
relevant code:
resp, err := httpClient.Post("https://mydotnetserver.com/service.asmx",
"application/soap+xml; charset=utf-8",
strings.NewReader(soapRequestContent))
if err!=nil {
fmt.Println("error1 : " + err.String())
}
I scanned the docs and mailing list but see nothing. What am I missing?
Thanks!
Brian
import ("net/http"; "crypto/tls")//...tr := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify : true},}client := &http.Client{Transport: tr}resp, err := client.Get("https://someurl:443/)
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.