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.

Tags:

httpwebrequest web proxyHttpWebRequest Post methodHttpWebRequest and yahooHttpWebRequest TimeoutHttpWebRequestc# send SMS (Text)c# port scannerWhere is my IP locationCheck Email AddressASP.net monitor server Bulk Email

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.