티스토리 뷰

public ContentResult CallTest()

        {

            int roofCounter = 0;

            for (int i = 0; i < 10; i++ )

            {

                WebClient wc = new WebClient();

                System.Collections.Specialized.NameValueCollection nvc = new System.Collections.Specialized.NameValueCollection();

                nvc.Add("p_id", "37");

                nvc.Add("pkey", "jjh5400823");

                

                wc.UploadValues("http://www.pointclick.co.kr/api/pointsendtest", "POST", nvc);

                System.Threading.Thread.Sleep(5000);

                roofCounter++;

            }


            return Content(roofCounter.ToString());

        }

728x90
반응형