O'Reilly logo

Microsoft® .NET Compact Framework (Core Reference) by Mark Sutton, Rory MacLoed, Robert Burbidge, Stephen Wheelwright, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the WebRequest and WebResponse Classes

The WebRequest and WebResponse classes, defined in the System.Net namespace, allow you to retrieve information from the Internet. For example, you can request an HTML Web page that would normally be displayed in a Web browser. You can then process the resulting page programmatically to extract information. This technique of screen scraping is useful, but your application will continue to work reliably only as long as the format of the page does not change excessively. The action of a WebRequest can go beyond simply fetching a page, however. It is possible to send data to the Web server to be processed by programs running on the Web server, such as a Common Gateway Interface (CGI) script. The response ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required