tried it, didnt work
the problem is that Winsock1.GetData has limit of data it can get
i need to somehow grab all data, i hope i can find someone who can give me code to do it
flag = ""
WinSockHttp1.Post_data = Text4.Text
WinSockHttp1.Head_cookie = CoS
WinSockHttp1.Successflags = "flag xxxx" ’Set a flag to determine whether all required web pages have been downloaded. Sometimes we only need part of the webpage content
WinSockHttp1.SockHttp "http://XXX.COM,", mPOST, "1011101"
Private Sub WinSockHttp1_ReturnComplete( Arraydata() As Byte, Flags As String)
strWeb = WinSockHttp1.Return_webstring ‘download complete string
‘’Arraydata is bytearrays。
'Debug.Print index
'raw.debug_print strweb
End Sub
The code logic is not very clear. Modify it yourself, I suggest you use winhttp
Last edited by xxdoc123; Sep 16th, 2020 at 09:06 PM.