|
-
Apr 14th, 2000, 07:38 PM
#1
Thread Starter
New Member
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.
-
Apr 14th, 2000, 08:07 PM
#2
Fanatic Member
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
-
Apr 14th, 2000, 08:12 PM
#3
Thread Starter
New Member
How do I use the internet transfer control? Can you give me an example?
-
Apr 14th, 2000, 08:18 PM
#4
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|