예제 #1
0
        public ActionResult GetHttpWebHelper()
        {
            Dictionary <string, string> dict = new Dictionary <string, string>()
            {
                { "SearchKey", "国元信托" },
                { "AttrParam.CodeName", "xintuo" },
                { "AttrParam.ProductStatusType", "1" },
            };

            for (int i = 0; i <= 100; i++)
            {
                var result = HttpWebHelper.GetRequest <ResponseResult>("http://productapi.jinglih.com/api/Product/GetProductList", dict);
                Console.WriteLine(i + "====" + result);
            }
            return(Content(""));
        }