Help with Simple way to Retrieve HTML page

D

David Elliott

I know I can use
AxSHDocVw.AxWebBrowser browser.Navigate(...);
catch the
browser_DocumentComplete()
and retrieve using the page using
htm = (mshtml.HTMLDocument)browser.Document;

I am looking for a non-GUI way to just retrieve the web page.
I know that there is, I just can't seem to find/remember what it is.

Thanks,
Dave
(e-mail address removed)
 
D

David Elliott

A response was addressed to me and I am posting the answer.

HttpWebRequest and HttpWebResponse

Cheers,
Dave
 
H

Herfried K. Wagner

Hello,

David Elliott said:
I am looking for a non-GUI way to just retrieve the web page.
I know that there is, I just can't seem to find/remember what it is.

\\\
Imports System.IO
Imports System.Net
..
..
..
Dim wrq As WebRequest = _
WebRequest.Create( _
"http://stud3.tuwien.ac.at/~e0025861/index.html" _
)
Dim wrp As WebResponse = wrq.GetResponse()
Dim sr As StreamReader = _
New StreamReader(wrp.GetResponseStream())
MessageBox.Show(sr.ReadToEnd())
///

Regards,
Herfried K. Wagner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top