Exemplo n.º 1
0
 public Task <WebElement> PostToUrlAsync(Uri url, string parameters)
 {
     return(Task.Factory.StartNew(() =>
     {
         var html = _webClient.UploadString(url, "POST", parameters);
         return ParseDocument(html, url);
     }));
 }
        public void PostToUrl(Uri url, string parameters)
        {
            var html = _webClient.UploadString(url, "POST", parameters);

            ProcessResult(html);
        }