Exemple #1
0
        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);
        }
Exemple #2
0
 public static string Request(string url, string data, NameValueCollection headers = null, CookieCollection cookies = null)
 {
     return(RequestUtility.HttpGet(url, data, headers, cookies));
 }
Exemple #3
0
 public static string Request(string url)
 {
     return(RequestUtility.HttpGet(url, ""));
 }
Exemple #4
0
 public static string Request(string url, IDictionary <string, string> formData, NameValueCollection headers = null, CookieCollection cookies = null)
 {
     return(RequestUtility.HttpGet(url, formData, headers, cookies));
 }