Results 1 to 6 of 6

Thread: Download Webpage line with ITC

  1. #1

    Thread Starter
    Addicted Member DanCool999's Avatar
    Join Date
    Jul 2006
    Posts
    141

    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

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  3. #3

    Thread Starter
    Addicted Member DanCool999's Avatar
    Join Date
    Jul 2006
    Posts
    141

    Re: Download Webpage line with ITC

    What about URLDownloadToFile? I found this is faster anyway.
    Dan " "

    Visual Basic Professional 6.0

  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  5. #5

    Thread Starter
    Addicted Member DanCool999's Avatar
    Join Date
    Jul 2006
    Posts
    141

    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

  6. #6
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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
  •  



Click Here to Expand Forum to Full Width