Skip to content
Fatih Aydin edited this page Jan 29, 2014 · 1 revision

Web.Http - Http requests

To request a single web page:

string html = Http.Get("http://google.com");

To post data to a site:

string html = Http.Post("http://playsharp.net/PostTest.ashx", "q=NetUtilities");

To download a file from a URL, use the Download method, set the Url and the path you wish to save the file to on your HDD:

Http.Download("https://github.com/AydinAdn/NetUtilities", "NetUtilities.html");    
Clone this wiki locally