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(); } }
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); }
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; }