|
-
Aug 27th, 2001, 03:22 PM
#1
Thread Starter
Addicted Member
-
Aug 28th, 2001, 03:15 PM
#2
Fanatic Member
I just looked at your code, and it's really hard to understand whats going on where you are dealing with byte arrays in the DataArrival event.
If you are downloading a file of length 108 bytes, this should ALL be contained in the first chunk of data recieved in the DataArrival event... So there might be a problem with your parsing algorithm
Why not hold the data which you get in the Winsock_DataArrival event in a string? This will make it A LOT easier to parse header info. from.
Also, you don't need to send all the header fields your sending at the moment. A header such as the following should work:
"GET *MYURI* HTTP/1.0" & Vbcrlf & Vbcrlf
Hope this helps 
Laterz
Digital-X-Treme
Contact me on MSN Messenger: [email protected]
[VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
/ (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]
-
Aug 28th, 2001, 05:08 PM
#3
Thread Starter
Addicted Member
well, im not the one making the code 
but thats the only code i have found on downloading a file which actually works ! 
but do you have a better code?
-
Aug 31st, 2001, 11:12 AM
#4
Hyperactive Member
Hi,
Try using the InternetReadFile function from the "Wininet.dll" API.
If you need an example, let me know.
Craig.
-
Aug 31st, 2001, 11:46 AM
#5
Frenzied Member
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
|