Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssl Get-net/http:TLS握手超时golang_Ssl_Go_Https_Timeout_Handshake - Fatal编程技术网

Ssl Get-net/http:TLS握手超时golang

Ssl Get-net/http:TLS握手超时golang,ssl,go,https,timeout,handshake,Ssl,Go,Https,Timeout,Handshake,需要你的帮助吗 package main import ( "log" "net/http" ) func main() { client := &http.Client{} _, err := client.Get("https://www.marathonbet.com/en/") if err != nil { log.Fatalf("%s\n", err) } } 这总是返回:得到https://www.mar

需要你的帮助吗

package main

import (
    "log"
    "net/http"
)

func main() {
    client := &http.Client{}
    _, err := client.Get("https://www.marathonbet.com/en/")
    if err != nil {
        log.Fatalf("%s\n", err)
    }
}
这总是返回:得到https://www.marathonbet.com/en/: net/http:TLS握手超时退出状态1 我想试试: 并使用lib 做 但对我来说什么都不管用。。 所以,请帮帮我

更新: 在Python2.7中,通过请求可以实现以下功能:

s = Session()
r = s.get('https://www.marathonbet.com/en/, verify=False)
但我需要用围棋

UPD: 修正:只需重新播放https://www.marathonbet.com/en/ 到https://87.117.250.213/en/ 以及添加跳过验证。
谢谢您的帮助。

我可以看到该主机没有任何问题,而且它看起来配置得相当好。通过IPv6连接是否有问题?如果尝试其他https主机会发生什么情况?没有,https://code.google.com -非常好。如果知道这是IPv6问题,那就太好了。您使用的是go1.5.1吗?@EvgeniySolomanidin:这绝对是错误的解决方案,因为DNS可能会在通过cloudflare的任何时候发生更改,并且您不能信任远程服务器。