ssl - How to use http.Get in a TLSClient in Go? -
hi want perform request in go after creating tlsclient, example:
client, err := docker.newtlsclient(sconf.dockconf.endpoint, sconf.dockconf.cert, sconf.dockconf.key, sconf.dockconf.ca)
then how can perform request in go?
not sure package using http package has newrequest function
req, _ := http.newrequest("get", url, nil) client.do(req)
--edit
in addition, here full working tls example client certificates (i did not create gist)
Comments
Post a Comment