package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
)
func main() {
res, err := http.Get("https://secure.quantserve.com/quant.js")
if err != nil {
log.Fatal(err)
}
robots, err := ioutil.ReadAll(res.Body)
res.Body.Close()
if err != nil {
log.Fatal(err)
}
fmt.Printf("%s", robots)
}
Code produces:
2015/02/28 23:47:34 Get https://secure.quantserve.com/quant.js: remote error: handshake failure
but all browsers open it.