Results 1 to 2 of 2

Thread: Download a webpage from the net, but...

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2006
    Posts
    24

    Post Download a webpage from the net, but...

    Hi all,

    I need to download a webpage from the net, but:

    1) using a custom User-Agent header,
    2) with a Timeout of 60 seconds
    3) without receiving cookies or cache files
    4) and after it is downloaded, turn all relative URLs to absolute,
    5) then parse all links and populate a ListBox control with the URLs

    Anyone can help me out?

    P.S. I want to accomplish this without having to use Inet control etc.

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

    Re: Download a webpage from the net, but...

    Your solution would be to use the Winsock control, or even better, the Winsock API.

    There are other solutions, such as URLDownloadToFile, or AsyncRead of a usercontrol, but they don't give you as much control.

    Here's a good site about using the Winsock API . If you have the option of using the Winsock control, it would make things a lot easier/quicker.

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