Is it possible to download a webpage using internet transfer control but to start download on a certain line instead of line 1 using the getchunk method or the "GET" method?
Thanks
Printable View
Is it possible to download a webpage using internet transfer control but to start download on a certain line instead of line 1 using the getchunk method or the "GET" method?
Thanks
I don't know if the inet control supports resume, but on HTTP servers that support resuming downloads you may be able to tell it which part of the file you want to start reading from.
But you would need to know what position in the file that line starts at. Other than that...you will have to download the file from the beginning.
What about URLDownloadToFile? I found this is faster anyway.
No, URLDownloadToFile() doesn't let you specify what byte to start downloading from...
If you want to do this you'd have to use something like the Winsock control and send the appropriate HTTP header.
All of this is kind of pointless though if you don't know specifically which byte you want to start reading from.
Ok can you point me to an example using winsock, and yes I know where Im going to start exactly.
There are quite a few code examples out there I don't remember the exact header for requesting part of a file. You can try this one to see how it's done:
http://www.pscode.com/vb/scripts/Sho...=7335&lngWId=1
And there are more here:
http://www.pscode.com/vb/scripts/Bro...1=Quick+Search