You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
namespace asyncawait
|
|
{
|
|
internal class Program
|
|
{
|
|
static async Task Main(string[] args)
|
|
{
|
|
using (HttpClient httpClient= new HttpClient())
|
|
{
|
|
string html = await httpClient.GetStringAsync("http://taobao.com/robots.txt");
|
|
Console.WriteLine(html);
|
|
}
|
|
|
|
}
|
|
}
|
|
} |