| | |
| | | os.write(bodyData.getBytes(CHARSET)); |
| | | } |
| | | |
| | | httpHzResponse.setCode(con.getResponseCode()+""); |
| | | httpHzResponse.setData(IOUtils.toString(con.getInputStream(), CHARSET)); |
| | | if(HttpHzResponse.CODE_200.equals(con.getResponseCode())){ |
| | | httpHzResponse.setCode(con.getResponseCode()+""); |
| | | httpHzResponse.setData(IOUtils.toString(con.getInputStream(), CHARSET)); |
| | | }else{ |
| | | httpHzResponse.setCode(con.getResponseCode()+""); |
| | | httpHzResponse.setMsg(IOUtils.toString(con.getErrorStream(), CHARSET)); |
| | | } |
| | | |
| | | } catch (Exception var14) { |
| | | var14.printStackTrace(); |