| | |
| | | } |
| | | } |
| | | out = new PrintWriter(new OutputStreamWriter(conn.getOutputStream(), StandardCharsets.UTF_8)); |
| | | log.error("---------param发送的数据为:{}",param); |
| | | log.info("---------param发送的数据为:{}",param); |
| | | out.print(param); |
| | | out.flush(); |
| | | in = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8)); |
| | |
| | | } |
| | | } |
| | | |
| | | log.error("发送参数:{}", param); |
| | | log.info("发送参数:{}", param); |
| | | try (OutputStream os = conn.getOutputStream()) { |
| | | byte[] input = param.getBytes(StandardCharsets.UTF_8); |
| | | os.write(input, 0, input.length); |