simple http get and put

Hi,

I have a application that needs to perform a a simple http get, the reply is a short string.

However hard i look, I don't seem to be able to find a way of doing this, someone tell me I am a dumbo by showing me how. PleaseSmile

Bulldob Drummond

[386 byte] By [BulldogDrummond] at [2008-2-7]
# 1

You're in luck. That is really easy to do once you know where to look.

Code Snippet

'VB 8

Dim wc As New Net.WebClient

Dim s As String = wc.DownloadString("http://news.com")

Console.WriteLine(s)

Console.ReadLine()

'vb 9

Dim wc As New Net.WebClient

Dim s = wc.DownloadString("http://news.com")

Console.WriteLine(s)

Console.ReadLine()

JonathanAllen at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Visual Basic Express Orcas...

Visual Studio Orcas

Site Classified