정보 보관 ver1.0
프로그램 방식으로 웹 페이지 호출하기
James Wetzel
2013. 10. 24. 10:01
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
반응형