@ -29,13 +29,15 @@ public class SendPostRequest_PO extends BaseBean {
try {
try {
HttpClient client = new DefaultHttpClient ( ) ;
HttpClient client = new DefaultHttpClient ( ) ;
post = new HttpPost ( url ) ;
post = new HttpPost ( url ) ;
logger_8469796 . info ( "post--" + post ) ;
post . setHeader ( HTTP . CONTENT_TYPE , "application/json; charset=UTF-8" ) ;
post . setHeader ( HTTP . CONTENT_TYPE , "application/json; charset=UTF-8" ) ;
post . setHeader ( "Accept" , "application/json; charset=UTF-8" ) ;
post . setHeader ( "Accept" , "application/json; charset=UTF-8" ) ;
// post.setHeader("appkey",);
// post.setHeader("appkey",);
// po需要的验证
// po需要的验证
// TODO config costom config无法获取密码
// post.setHeader("Authorization", Util.null2String(I18nContextUtilcus.getBean(Environment.class).getProperty("htportaloaUrl.url_password")).trim());
// post.setHeader("Authorization", Util.null2String(I18nContextUtilcus.getBean(Environment.class).getProperty("htportaloaUrl.url_password")).trim());
logger_8469796 . info ( "getUrl_password--" + configProp . getUrl_password ( ) ) ;
// logger_8469796.info("getUrl_password--" + configProp.getUrl_password());
post . setHeader ( "Authorization" , configProp . getUrl_password ( ) ) ;
post . setHeader ( "Authorization" , "Basic UE9VU0VSOjY1NDMyMQ==" ) ;
StringEntity entity = new StringEntity ( returnJson . toString ( ) , "UTF-8" ) ;
StringEntity entity = new StringEntity ( returnJson . toString ( ) , "UTF-8" ) ;
post . setEntity ( entity ) ;
post . setEntity ( entity ) ;
@ -54,4 +56,6 @@ public class SendPostRequest_PO extends BaseBean {
}
}
return result ;
return result ;
}
}
}
}