Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/JiaDianHuiShou
| | |
| | | */ |
| | | public class CreateLinkStringByGet1 { |
| | | public static String createLinkStringByGet(Map<String, String> params){ |
| | | // TODO Auto-generated method stub |
| | | List<String> keys = new ArrayList<String>(params.keySet()); |
| | | Collections.sort(keys); |
| | | String str1 =""; |
| | |
| | | |
| | | |
| | | public static String post(String params,String requestUrl) throws IOException { |
| | | // TODO Auto-generated method stub |
| | | // try { |
| | | // try { |
| | | //HttpRequester request = new HttpRequester(); |
| | | // request.setDefaultContentEncoding("utf-8"); |
| | | byte[] requestBytes = params.getBytes("utf-8"); // 将参数转为二进制流 |