WebRequest

Sockets are fundamental when data should be transmitted over a network. They're the most basic component that can be accessed by a C# programmer. That implies that talking to sockets is too complex for the most common tasks. Therefore, Mono provides a set of classes to help you use the most common protocols.

The Web has become an important component of our everyday life. Therefore, requesting Web sites is a basic operation. With the help of WebRequest, it's possible to retrieve the content of a Web site.

HTTP

This section takes a closer look at HTTP (Hypertext Transfer Protocol). We start with an example in which you can see how data can be loaded from a Web server:

 using System; using System.Net; using System.IO; using System.Text; ...

Get Mono Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.