update httplib support https

This commit is contained in:
astaxie
2013-12-10 22:01:50 +08:00
parent 3a0b2e3b95
commit efd285a6c4
2 changed files with 23 additions and 7 deletions

View File

@@ -43,4 +43,12 @@ set post timeout:
## debug
if you want to debug the request info, set the debug on
httplib.Get("").Debug(true)
httplib.Get("").Debug(true)
## support HTTPS client
if request url is https. You can set the client support tsl:
httplib.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true})
more info about the tls.Config please visit http://golang.org/pkg/crypto/tls/#Config