// 我成功了,代码在这里
package main
import (
"crypto/tls"
"fmt"
"net/http"
)
func main() {
defaultCipherSuites := []uint16{0xc02f, 0xc030, 0xc02b, 0xc02c, 0xcca8, 0xcca9, 0xc013, 0xc009,
0xc014, 0xc00a, 0x009c, 0x009d, 0x002f, 0x0035, 0xc012, 0x000a}
client := http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
CipherSuites: append(defaultCipherSuites[8:], defaultCipherSuites[:8]...),
MaxVersion: tls.VersionTLS12,
},
ForceAttemptHTTP2: false,
},
}
req, err := http.NewRequest("GET", "", nil)
req.Header.Add("authority", "
api.nftgo.io")
req.Header.Add("pragma", "no-cache")
req.Header.Add("User-Agent", "Apifox/1.0.0 (
https://www.apifox.cn)")
resp, err :=
client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer resp.Body.Close()
fmt.Println(resp.Status)
}