HttpProtocolParams.setContentCharset(params, "UTF-8");
HttpProtocolParams.setHttpElementCharset(params, "UTF-8");
HttpProtocolParams.setUseExpectContinue(params, true);
// TODO KKr - set on connection manager params, or client params?
CookieSpecParamBean cookieParams = new CookieSpecParamBean(params);
cookieParams.setSingleHeader(true);
// Create and initialize scheme registry
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
SSLSocketFactory sf = null;