Ejemplo n.º 1
0
        public static T Request <T>(string url, string data, NameValueCollection headers = null, CookieCollection cookies = null)
        {
            string returnText = RequestUtility.HttpGet(url, data, headers, cookies);
            var    result     = GetResult <T>(returnText, SerializationType.Json);

            return(result);
        }
Ejemplo n.º 2
0
        public static T Request <T>(string url, IDictionary <string, string> formData, SerializationType resultSerializationType = SerializationType.Json, NameValueCollection headers = null, CookieCollection cookies = null)
        {
            string returnText = RequestUtility.HttpGet(url, formData, headers, cookies);
            var    result     = GetResult <T>(returnText, resultSerializationType);

            return(result);
        }
Ejemplo n.º 3
0
 public static string Request(string url)
 {
     return(RequestUtility.HttpGet(url, ""));
 }
Ejemplo n.º 4
0
 public static string Request(string url, string data, NameValueCollection headers = null, CookieCollection cookies = null)
 {
     return(RequestUtility.HttpGet(url, data, headers, cookies));
 }
Ejemplo n.º 5
0
 public static string Request(string url, IDictionary <string, string> formData, NameValueCollection headers = null, CookieCollection cookies = null)
 {
     return(RequestUtility.HttpGet(url, formData, headers, cookies));
 }