|
楼主 |
发表于 2024-10-12 10:03
|
显示全部楼层
大师好,这个用你说的方法试过了,都不行
这个是curl的
Sub http_request()
Dim winhttpObj As Object
Dim resp As String
Set winhttpObj = CreateObject("WinHttp.WinHttpRequest.5.1")
With winhttpObj
.Open "null", "https://flash-api.xuangubao.cn/api/pool/detail?pool_name=limit_up", False
.send
End With
resp = winhttpObj.responseText
Debug.Print resp
End Sub
这个是tls更换对象及对IE设置
With CreateObject("winhttp.WinHttpRequest.5.1") '("MSXML2.ServerXMLHTTP") '("Microsoft.XMLHTTP") '("Winhttp.Winhttprequest.5.1") 'CreateObject("MSXML2.XMLHTTP")
.Open "GET", url, False
'.option(9) = 512 'TLS1.1
.send
jsonData = .responseText
End With
jsonData = getjsondata(url)
都是上面的错误信息,请大师帮忙处理一下,谢谢 |
|