public static string Request(string url, string data = null, ContentType contentType = ContentType.Json, byte[] cert = null, string certPassword = null, NameValueCollection headers = null, CookieCollection cookies = null) { string returnText = RequestUtility.HttpPost(url, data, contentType, cert, certPassword, headers, cookies); return(returnText); }
public static string Request(string url, string data, NameValueCollection headers = null, CookieCollection cookies = null) { return(RequestUtility.HttpGet(url, data, headers, cookies)); }
public static string Request(string url) { return(RequestUtility.HttpGet(url, "")); }
public static string Request(string url, IDictionary <string, string> formData, NameValueCollection headers = null, CookieCollection cookies = null) { return(RequestUtility.HttpGet(url, formData, headers, cookies)); }