有人可以幫助我使用uTls在go中修復(fù)我的TLS嗎?每當(dāng)我嘗試對 https://www.fedex.com/ 的GET請求時,我都會得到:Get "https://www.fedex.com/": uTlsConn.Handshake() error: remote error: tls: internal error這是我的代碼:func tls_connection(URL string) *http.Response { cookieJar, _ := cookiejar.New(nil) client := &http.Client{ Jar: cookieJar} tlsConn.SetSNI(URL) req, err := http.NewRequest("GET", URL, nil) req.Header.Add("user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36") // the client.do wraps the request resp, err := client.Do(req) if err != nil { fmt.Println(err) } else { fmt.Println(resp.StatusCode) body, _ := ioutil.ReadAll(resp.Body) fmt.Println(string(body)) } return resp}
使用uTls時,如何修復(fù) www.fedex.com 上的TLS錯誤?
慕的地6264312
2022-08-01 10:50:46