public void GetAsyncTest() { var client = new CookieAwareWebClient { UserAgent = UserAgent }; client.GetAsync("https://example.com"); }
public void MultiRequestTest() { var client = new CookieAwareWebClient { UserAgent = UserAgent }; client.Get("https://example.com"); client.GetAsync("https://example.com"); client.Post("https://example.com", new NameValueCollection() { { "key1", "value1" }, { "key2", "value2" }, }); client.PostAsync("https://example.com", new NameValueCollection() { { "key1", "value1" }, { "key2", "value2" }, }); }