How to use HttpWebRequest and HttpWebResponse.

How to use HttpWebRequest and HttpWebResponse.


Learn how to use HttpWebRequest and HttpWebResponse in .Net application.

How HttpwebRequest works
At Asp.net server HttpWebRequest prepares the request on be half of end user.
HttpWebResponse collects the response returned by server.
Your application logic can parse the response for specific pattern like email or scrap the products or
contact address information etc. End user never knows who served the request
or on which server the request got served.

This is widely used in Ecommerce and Telecommunication domain.
You can also create high performance application to consume API of third party web.

Note: After receiving the response don't forget to close the response and stream reader
objects. This will free up the resources.

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5