NRD
Tue Jun 29 05:35:51 CDT 2004
at first i got problem - importing System.Web, instead of System.Net (got
confused with HTTPWebRequest and HTTPRequest). Anyway,it works..
thanks....
"Jakob Christensen" <jchREMOVE@pension.dk> wrote in message
news:4DA71B8F-CF13-43DA-AC9A-8090C23A40F6@microsoft.com...
> Have a look at HttpWebRequest. Here is a short example:
>
> Dim req As HttpWebRequest = WebRequest.Create
("
http://www.microsoft.com")
> Dim resp As HttpWebResponse = req.GetResponse()
>
> Dim receiveStream As Stream = resp.GetResponseStream()
> Dim reader As StreamReader = New StreamReader(receiveStream,
System.Text.Encoding.UTF8)
>
> Dim content As String = reader.ReadToEnd()
> Console.Write(content)
>
> reader.Close()
>
> Regards, Jakob.
>
>
> "NRD" wrote:
>
> > i'm looking for an example using vb.net to connect to a
webserver,request a
> > webpage and get the returned html page.
> >
> > tq.
> >
> >
> >