Results 1 to 18 of 18

Thread: Vb6: Winsock grab full data on arrival

Threaded View

  1. #13
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    733

    Re: Vb6: Winsock grab full data on arrival

    Quote Originally Posted by geekmaro View Post
    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
    Text4.Text

    Connection: keep-alive
    Cache-Control: max-age=0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    Content-Type: application/x-www-form-urlencoded
    Referer: http://xxxx
    Accept-Encoding: deflate
    Accept-Language: xxxx,zh;q=0.8
    Code:
         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
    Attached Files Attached Files
    Last edited by xxdoc123; Sep 16th, 2020 at 09:06 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width