Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Get HTML code from an ASP page

1 view
Skip to first unread message

ShrimpBoy

unread,
May 9, 2006, 8:29:01 AM5/9/06
to
Hi!

I want to read the HTML code provided by an ASP page.

I tried with this code...

Dim reader As IO.StreamReader
Try
Dim hwebrequest As System.Net.HttpWebRequest =
System.Net.HttpWebRequest.Create(Url)
Dim hwebresponse As System.Net.HttpWebResponse =
hwebrequest.GetResponse
reader = New IO.StreamReader(hwebresponse.GetResponseStream)
MsgBox(reader.ReadToEnd())
reader.Close()
Catch ex As Exception
MsgBox(ex.Message.ToString)
reader.Close()
End Try

I have an error, access denied, when I try to get hwebresponse...

How can I do that?

Thanks!

ShrimpyOne

0 new messages