Ejemplo n.º 1
0
        public ActionResult PostHttpWebHelper()
        {
            SearchProductParam dict = new SearchProductParam()
            {
                SearchKey = "国元信托1",
                AttrParam = new SearchProductAttrParam()
                {
                    CodeName = "xintuo", ProductStatusType = 1
                },
            };
            var jsonStr = Newtonsoft.Json.JsonConvert.SerializeObject(dict);

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