using(WebClient client = new WebClient()) {
string s = client.DownloadString(url);
}
More Related Contents:
- How to provide user name and password when connecting to a network share
- Programming P2P application
- Sending http requests in C# with Unity
- Get public/external IP address?
- Send a file via HTTP POST with C#
- Build query string for System.Net.HttpClient get
- How to write a scalable TCP/IP based server
- How to get the file size from http headers
- How do I check for a network connection?
- Multipart forms from C# client
- URL mapping with C# HttpListener
- C# HttpWebRequest command to get directory listing [closed]
- HttpWebRequest is extremely slow!
- Receiving data in TCP
- TraceRoute and Ping in C#
- System.Net.WebClient unreasonably slow
- HttpWebRequest times out on second call
- Create HTTP post request and receive response using C# console application
- C# – How to make a HTTP call
- Identifying active network interface
- How to determine MAC Address of the actual physical network card — not virtual network interfaces created by VPN’s (.NET C#)
- find all ip address in a network
- PATCH Async requests with Windows.Web.Http.HttpClient class
- Find the next TCP port in .NET
- Proper way to stop TcpListener
- Request Web Page in c# spoofing the Host
- Getting the location from a WebClient on a HTTP 302 Redirect?
- Sockets On Same Machine For Windows and Linux
- forward traffic from port X to computer B with c# “UDP punch hole into firewall”
- A call to SSPI failed, see inner exception – The Local Security Authority cannot be contacted