HTTPPOST
No丶不Yes
这个作者很懒,什么都没留下…
展开
-
java 后台模拟文件上传请求
jar包依赖 <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.3</version> </dependency> <dependency&g原创 2020-06-18 10:18:03 · 494 阅读 · 0 评论 -
模拟post请求 json格式传参
/** * 模拟post请求 json参数 * @param params json字符串 * @return */ public JSONArray getResponse(StringJson params) { String response = null; String url = ""; try { CloseableHttpClient httpclient = null; CloseableHttpResponse原创 2020-05-19 09:34:15 · 829 阅读 · 0 评论