public static CookieCollection GetCookie(string url, HttpPara para) { HttpWebRequest request = HttpWebUtility.Create(url, para, "HEAD", null); return(HttpWebUtility.ReceiveCookie(request)); }
public static void GetFile(string url, HttpPara para, string savePath) { HttpWebRequest request = HttpWebUtility.Create(url, para, "GET", null); HttpWebUtility.ReceiveFile(request, savePath); }
public static string Operate(string url, HttpPara para, string method) { HttpWebRequest request = HttpWebUtility.Create(url, para, method, null); return(HttpWebUtility.ReceiveString(request)); }
public static string GetText(string url, HttpPara para) { HttpWebRequest request = HttpWebUtility.Create(url, para, "GET", null); return(HttpWebUtility.ReceiveString(request)); }