c# get url html
using System.Net;
using (WebClient web1 = new WebClient())
string data = web1.DownloadString("URL");
Console.WriteLine(data);
}
c# get url html
using System.Net;
using (WebClient web1 = new WebClient())
string data = web1.DownloadString("URL");
Console.WriteLine(data);
}
c# read a webpage data
WebClient client = new WebClient ();
// Add a user agent header in case the
// requested URI contains a query.
client.Headers.Add ("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
Stream data = client.OpenRead (args[0]);
StreamReader reader = new StreamReader (data);
string s = reader.ReadToEnd ();
Console.WriteLine (s);
data.Close ();
reader.Close ();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us