Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Watch the source code of html page 1

Status
Not open for further replies.

TipGiver

Programmer
Joined
Sep 1, 2005
Messages
1,863
Hi,

I need some help on displaying the source code of an html page ( in a textbox, without using a web browser control.


Dim hwr As System.Net.HttpWebRequest
hwr.Create(mySite)

Thank you.
 
You mean something like this:
Code:
        'Declarations
        Dim wbrqLogin As HttpWebRequest
        Dim wbrsLogin As HttpWebResponse
        Dim strTemp As String
        Dim srLogin As StreamReader

        ' Create the web request
        wbrqLogin = WebRequest.Create("http:/[URL unfurl="true"]www.tek-tips.com")[/URL]
        wbrqLogin.Method = "GET"

        ' Read the returned data 
        wbrsLogin = wbrqLogin.GetResponse
        srLogin = New StreamReader(wbrsLogin.GetResponseStream)
        strTemp = srLogin.ReadToEnd.Trim
        srLogin.Close()


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top