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. Please
Bulldob Drummond
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()