小编Jen*_*nny的帖子

从HttpClient 3转换为4

我设法对以下所有内容进行了更改:

HttpClient client;
HttpPost method;   
client = new DefaultHttpClient();
method = new HttpPost(url); 

InputStream rstream;
try {
    rstream = method.getResponseBodyAsStream();
} catch (IOException e) {
    return BadSpot(e.getMessage()); 
}
Run Code Online (Sandbox Code Playgroud)

我不确定的是我应该替换getResponseBodyAsStream().

java apache-commons-httpclient

10
推荐指数
1
解决办法
5633
查看次数

标签 统计

apache-commons-httpclient ×1

java ×1