微信沙盒测试流程中,发送xml格式的参数请求application/xml

This commit is contained in:
egzosn
2020-10-26 22:58:28 +08:00
parent 708a7b16b6
commit a1be9c0dfd
2 changed files with 56 additions and 15 deletions

View File

@@ -38,6 +38,7 @@ import static com.egzosn.pay.common.http.UriVariables.getMapToParameters;
public class ClientHttpRequest<T> extends HttpEntityEnclosingRequestBase implements org.apache.http.client.ResponseHandler<T> {
protected static final Log LOG = LogFactory.getLog(ClientHttpRequest.class);
public static final ContentType APPLICATION_FORM_URLENCODED_UTF_8 = ContentType.create("application/x-www-form-urlencoded", Consts.UTF_8);
public static final ContentType APPLICATION_XML_UTF_8 = ContentType.create("application/xml", Consts.UTF_8);
/**