0

I don't have any idea how to use this class in .net. Anyone wants to share his knowledge how to implement and use this class?

Have you got any simple procedure that calls a page and process it?

1
  • What programming language are you using? Commented May 25, 2009 at 12:39

2 Answers 2

4
Dim request = HttpWebRequest.Create("http://www.google.com")
Dim response = request.GetResponse()
Using reader = New StreamReader(response.GetResponseStream())
    Console.WriteLine(reader.ReadToEnd())
End Using
Sign up to request clarification or add additional context in comments.

Comments

4

The easiest way is to use the WebClient class that simplifies most common uses of HttpWebRequest.

Example in C#:

string page;
using (WebClient client = new WebClient()) {
   page = client.DownloadString("http://www.guffa.com");
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.