예제 #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();
     }
 }
예제 #2
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;
 }