What version of Go are you using (go version)?
go1.4.2
What operating system and processor architecture are you using?
darwin/amd64
run this program,
package main
import (
"fmt"
"net/http"
)
func main() {
url := "https://catchchat.catchchatchina.com/"
_, err := http.Head(url)
if err != nil {
fmt.Println(err)
}
}
What did you expect to see?
do not print the error. This url can be opened in browsers.
What did you see instead?
[sunrunaway:~/Code/go/bin]$ go run ~/Code/gotmp/httpget.go (master)
Head https://catchchat.catchchatchina.com/: x509: certificate signed by unknown authority
go1.4.2
darwin/amd64
run this program,
do not print the error. This url can be opened in browsers.