HttpWebRequest 방식으로는 데이터를 가져오는 크기에 한도가 있는 거 같다.
아래 방식으로 하면 데이터를 많이 가져온다.
// GET 방식으로 Web 에 있는 데이터를 가져온다.
void GetAsyncDataFromWeb(string url)
{
    var client = new HttpClient();
    var response = client.GetAsync(url).Result;
    string resultContent = response.Content.ReadAsStringAsync().Result;
}
// POST 방식으로 Web 에 있는 데이터를 가져온다.
void GetAsyncDataFromWeb(string url)
{
    var client = new HttpClient(); 
    var postData = new List<KeyValuePair<string, string>>();
    postData.Add(new KeyValuePair<string, string>("UserName", "Grace"));
    postData.Add(new KeyValuePair<string, string>("userID ", "12345"));
    var formContent = new FormUrlEncodedContent(postData);
    var response = client.PostAsync(url, formContent).Result;
    string resultContent = response.Content.ReadAsStringAsync().Result;
}
http://stackoverflow.com/questions/3001108/namevaluecollection-vs-dictionarystring-string
에 Dictionary<string,string> 와 NameValueCollection 차이점에 대한 문의 내용인데 간략한 답변이 나온다.
'C# > 통신' 카테고리의 다른 글
| C# Web 접속 로그인함수 만들기(HttpClient 방식) (0) | 2016.11.14 | 
|---|---|
| C# webFile 다운로드 함수 (0) | 2016.11.12 | 
| C# GetDataFromWeb 사용자 함수 (0) | 2016.08.20 | 
| C# comboBox 에 Text, Value 추가 및 POST, JSON (0) | 2016.08.19 | 
| C# comboBox 에 Text, Value 추가, 서버와 JSON 연동 (0) | 2016.08.19 |