| | |
| | | return wxMsgXml; |
| | | } |
| | | |
| | | /** 请求http协议 获取信息工具 |
| | | /** |
| | | * 请求http协议 获取信息工具 |
| | | * @param url 请求链接 |
| | | * @param data 请求数据(body) |
| | | * @param keyValues form表单数据 key参数名称,value参数值 |
| | |
| | | } |
| | | } |
| | | return wxMsgXml; |
| | | } |
| | | |
| | | public static void main(String args[]){ |
| | | String url = "https://test6.phiskin.com/phi_appt/fdd/callback/event"; |
| | | JSONObject json = new JSONObject(); |
| | | json.put("key", "value"); |
| | | String data = "bizContent=" + json.toString(); |
| | | Map<String, String> header = new HashMap<>(); |
| | | header.put("test", "123"); |
| | | String repStr = request(url, data, null, header, null, "application/x-www-form-urlencoded"); |
| | | } |
| | | |
| | | } |