|
-
May 5th, 2009, 07:36 PM
#1
Thread Starter
Addicted Member
winsock vb6 dataarrvival oversize content-length help
I was wondering what is the best way to grab over size content-length http dataarrival? because if over size data it will come in more the once
the header contain with content-length, lets say the Content-Length: 1968
how do u get only once.
thank you.
-
May 8th, 2009, 04:21 PM
#2
Re: winsock vb6 dataarrvival oversize content-length help
As far as I know you can't force Winsock to receive all data at once and have the DataArrival event only fire once. When receiving large data, the DataArrival event will fire multiple times and you'll have to join the incoming data yourself. Or what do you exactly mean with "over size content-length" ?
vb Code:
Private strAllData As String
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim strData As String
Winsock1.GetData strData, vbString
strAllData = strAllData & strData
End Sub
-
May 8th, 2009, 05:04 PM
#3
Thread Starter
Addicted Member
Re: winsock vb6 dataarrvival oversize content-length help
 Originally Posted by Chris001
As far as I know you can't force Winsock to receive all data at once and have the DataArrival event only fire once. When receiving large data, the DataArrival event will fire multiple times and you'll have to join the incoming data yourself. Or what do you exactly mean with "over size content-length" ?
vb Code:
Private strAllData As String
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim strData As String
Winsock1.GetData strData, vbString
strAllData = strAllData & strData
End Sub
thankx for your reply
the bad thing i'm working with bytes and array not with string on dataarrival.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|