Exemple #1
0
 public static XDocument LoadToXDocument(string url, CookieContainer cookies, bool UseWebClient)
 {
     Http http = new Http(url, cookies);
     http.UseWebClient = UseWebClient;
     try
     {
         http.Load();
         return http.GetXDocumentResult();
     }
     finally
     {
         http.Dispose();
     }
 }
Exemple #2
0
 public static void DownLoad(string path, string url, HttpRequestMethod method, string content, string referer)
 {
     Http http = new Http();
     http.LoadToFile(path, url, method, content, referer);
 }
Exemple #3
0
 public static string LoadText(string url, HttpRequestMethod method, string content, string referer)
 {
     Http http = new Http();
     http.Load(url, method, content, referer);
     return http.TextResult;
 }