[강운덕] [LUCYSUS-1744] apache httpclient4의 중요 api를 다 캡쳐하게 수정. cookie, entity를 덤프할수 있도록 기능 추가.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-testweb/trunk@2525 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2013-10-15 10:52:22 +00:00
parent 0e30152d5c
commit ff596f103a
@@ -115,7 +115,12 @@ public class HttpInvoker {
}
private HttpEntity getEntity(Map<String, Object> paramMap) throws UnsupportedEncodingException {
return new StringEntity(paramMap.toString(), "UTF-8");
if (paramMap.size() != 0) {
// size가 0일때 호출하면 entity에 {}가 들어감.
return new StringEntity(paramMap.toString(), "UTF-8");
} else {
return new StringEntity("", "UTF-8");
}
}
private HttpParams getHttpParams() {