|
-
Jul 15th, 2000, 06:18 AM
#1
Heres the question and its pretty hard. Its not hard code wise but its hard becuase you have to have great knowledge on how http protocol works.
I have created a Winsock program that will download files from the internet. Ok nothing new right? Well it downloads any type of file including binary files. It displays the Kbps, Estimated Time Left, Etc.. All that good stuff and heres the problem I ran into. I have a resume feature so you can resume the download if its stopped. According to documentation on the web by adding a Range: protocol to the header you send the server it should send you back the file after that range. Well when I download the rest of the file i get more data than what I wanted. I mean like if the file is 1.08 mb I usually download 1.10 mb for some reason. I dont know why and I cant figure it out. To look at the code download it at:
http://elucidsoftware.hypermart.net/winsock.zip
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
|