Fixes TLS and stuff.
Forked From github.com/x04/cclient
package main
import (
"log"
"github.com/refraction-networking/utls"
"github.com/danepoirier0/cclient"
)
func main() {
client, err := cclient.NewClient(tls.HelloChrome_Auto, os.Getenv("HTTP_PROXY"))
if err != nil {
log.Fatal(err)
}
resp, err := client.Get("https://www.google.com/")
if err != nil {
log.Fatal(err)
}
resp.Body.Close()
log.Println(resp.Status)
}