예제 #1
0
        public static async Task <String> GetContentAsStringAsync(String url, IEnumerable <KeyValuePair <String, String> > queries, Encoding encoding)
        {
            Uri    uri     = WebOperations.GenerateUri(url, queries);
            String content = encoding.GetString(await WebOperations.HttpClient.GetByteArrayAsync(uri));

            return(WebUtility.HtmlDecode(content));
        }
예제 #2
0
        public static String GetContentAsString(String url, IEnumerable <KeyValuePair <String, String> > queries)
        {
            Uri    uri     = WebOperations.GenerateUri(url, queries);
            String content = WebOperations.HttpClient.GetStringAsync(uri).Result;

            return(WebUtility.HtmlDecode(content));
        }