Results 1 to 4 of 4

Thread: Help

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    4

    Question

    How do I connect to a website and get the HTML for the page? I was going to use the webbrowser thing, but that would download all the images on the page and I dont want that.

    I also want the server to think that an actual browser is connecting, so I have to be able to send my own useragent so that I can set it as something like Mozilla/4.0 (compatible; MSIE 5) or whatever.

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Not sure about the user agent but don't use the web browser control, use the internet transfer control and you can download the html, I think there is a header property in which you might be able to send useragent info

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    4
    How do I use the internet transfer control? Can you give me an example?

  4. #4
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Actually there are good examples of how to use it in MSDN help for FTP and HTTP download of binary arrays etc but basically it's as simple as:

    Code:
    Private Sub Command1_Click()
        Text1.Text = Inet1.OpenURL("http://forums.vb-world.net")
    End Sub

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