|
-
Apr 18th, 2008, 10:22 PM
#1
Thread Starter
Addicted Member
Download Webpage line with ITC
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
Dan "  "
Visual Basic Professional 6.0
-
Apr 18th, 2008, 11:04 PM
#2
Re: Download Webpage line with ITC
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.
-
Apr 18th, 2008, 11:06 PM
#3
Thread Starter
Addicted Member
Re: Download Webpage line with ITC
What about URLDownloadToFile? I found this is faster anyway.
Dan "  "
Visual Basic Professional 6.0
-
Apr 18th, 2008, 11:16 PM
#4
Re: Download Webpage line with ITC
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.
-
Apr 18th, 2008, 11:19 PM
#5
Thread Starter
Addicted Member
Re: Download Webpage line with ITC
Ok can you point me to an example using winsock, and yes I know where Im going to start exactly.
Dan "  "
Visual Basic Professional 6.0
-
Apr 19th, 2008, 12:51 AM
#6
Re: Download Webpage line with ITC
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
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
|