my_url ="http://○○/servlet/dbapp" HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(my_url);
//パラメータ作成 //(http://○○/servlet/dbapp?Ap="0"&SQL="SELECT * FROM table_name ORDER BY code") List<NameValuePair> post_params = new ArrayList<NameValuePair>(); post_params.add(new BasicNameValuePair("Ap", "0")); post_params.add(new BasicNameValuePair("SQL", "SELECT * FROM table_name ORDER BY code")); httppost.setEntity(new UrlEncodedFormEntity(post_params, "UTF-8"));