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