|
本帖最后由 心电感应 于 2024-12-22 14:41 编辑
Sub http_request()
Dim winhttpObj As Object
Dim resp As String
Set winhttpObj = CreateObject("WinHttp.WinHttpRequest.5.1")
With winhttpObj
.Open "POST", "https://apphis.longhuvip.com/w1/api/index.php", False
.setRequestHeader "Connection", "keep-alive"
.setRequestHeader "Content-Type", "application/x-www-form-urlencoded; charset=utf-8"
.setRequestHeader "Accept-Encoding", "gzip;q=1.0, compress;q=0.5"
.setRequestHeader "Accept", "*/*"
.setRequestHeader "User-Agent", "lhb/5.17.7 (com.kaipanla.www; build:0; iOS 16.2.0) Alamofire/4.9.1"
.setRequestHeader "Content-Length", "186"
.setRequestHeader "Accept-Language", "zh-Hans-CN;q=1.0"
.setRequestHeader "Host", "apphis.longhuvip.com"
.send "Day=2024-12-19&Filter=0&FilterGem=0&FilterMotherboard=0&FilterTIB=0&Index=0&Is_st=1&Order=1&PhoneOSNew=2&PidType=8&Type=18&VerSion=5.17.0.7&a=HisDaBanList&apiv=w38&c=HisHomeDingPan&st=20"
End With
resp = winhttpObj.responseText
Debug.Print resp
Set winhttpObj = Nothing
End Sub
|
|