HttpClientAPIを使用してサーバーにJSON呼び出しを行おうとしています。コードsinppetを以下に示します。
HttpClient httpClient = new DefaultHttpClient();
HttpGet httpPost = new HttpPost(URLString);
HttpResponse response = httpClient.execute(httpPost);
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);
nameValuePairs.add(new BasicNameValuePair("method", "completeUserLogin"));
String[] params = new String[]{"100408"};
response = httpClient.execute(httpPost);
nameValuePairsにパラメータを追加したいと思います。BasicNameValuePairクラスでは、配列を追加できません。何かご意見は?
前もって感謝します!