0
I would like to know how I can access a page, example Uol.com.br, and return your HTML. Along with this return try to use regular expressions with this HTML.
0
I would like to know how I can access a page, example Uol.com.br, and return your HTML. Along with this return try to use regular expressions with this HTML.
0
Simple.
Using the class WebClient
of System.Net
using (var client = new WebClient())
{
string htmlCode = client.DownloadString("http://uol.com.br");
}
Or using HttpClient
of System.Net.Http
using (var httpClient = new HttpClient())
{
var html = httpClient.GetString("http://uol.com.br");
}
0
private async void GetHtml()
using (var httpClient = new HttpClient())
{
var html = await httpClient.GetStringAsync("http://xamarin.com");
}
}
Source:
https://stackoverflow.com/questions/27237829/how-to-read-html-from-a-webpage-using-xamarin-forms
Browser other questions tagged c# xamarin-forms
You are not signed in. Login or sign up in order to post.