62,614
社区成员
发帖
与我相关
我的任务
分享
URL url = new URL("http://10.102.1.40/oa/servlet/CreateFileServlet");
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setDoOutput(true);
con.setRequestMethod("POST");
String pro = "name=一二三.txt&folder=我的文件夹";
con.getOutputStream().write(pro.getBytes());
con.getOutputStream().flush();
con.getOutputStream().close();
InputStream in = con.getInputStream();