4.2.1の場合。
クローズする前に他のアクセスをする場合は必須。
公式参考ファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PoolingClientConnectionManager cm = new PoolingClientConnectionManager(); | |
cm.setMaxTotal(100); | |
DefaultHttpClient client = new DefaultHttpClient(cm); | |
HttpPost post = new HttpPost(url); | |
HttpResponse response = client.execute(post); |
0 件のコメント:
コメントを投稿