2016年9月18日 | Leave a comment 问题: JAX-RS client 如何 http post 解决: final String apiUrl="http://dwz.cn/create.php"; final Form data=new Form(); data.param("url", url.toString()); final Map resp=ClientBuilder.newClient().target(apiUrl).request().post(Entity.entity(data, MediaType.APPLICATION_FORM_URLENCODED), Map.class); 1234 final String apiUrl="http://dwz.cn/create.php"; final Form data=new Form(); data.param("url", url.toString()); final Map resp=ClientBuilder.newClient().target(apiUrl).request().post(Entity.entity(data, MediaType.APPLICATION_FORM_URLENCODED), Map.class);