如何从Java读取网络响应有效负载

时间:2019-05-27 12:44:04

标签: api selenium selenium-webdriver

如何从Java中读取网络响应有效载荷

 HttpResponse response = client.execute(request);
 HttpEntity entity = response.getEntity();

 String content = EntityUtils.toString(entity);
 System.out.println(content);
 String s=response.toString();
 System.out.println(response.getEntity().getContent());

0 个答案:

没有答案