1 Content-Type为application/x-www-form-urlencoded;charset=utf-8,
postman调用
java代码调用:
public static String sendZYGJZQSMS(String url, JSONObject requestData) { String result = ""; try { PostMethod postMethod = null; postMethod = new PostMethod(url) ; postMethod.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8") ; NameValuePair[] data= { new NameValuePair("DLZH", "test"), new NameValuePair("DLMM", "test"), }; postMethod.setRequestBody(data); HttpClient httpClient =