Code example for BasicHttpParams

0
    public HttpsClient(ThreadSafeClientConnManager connMan, HttpParams httpParams) {
        super(connMan, httpParams);
    } 
 
    public static HttpParams setupHttpParams(){
        HttpParams params = new BasicHttpParams();
        // Protocol Parameters 
        HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
        HttpProtocolParams.setContentCharset(params, "utf-8");
        HttpProtocolParams.setUseExpectContinue(params, false);
        HttpProtocolParams.setUserAgent(params, USER_AGENT);
 
        // Connection Parameters 
        // HttpConnectionParams.setConnectionTimeout(params, 5000); 
        return params;
    } 
 
    public static ThreadSafeClientConnManager setupSSLConnMan(HttpParams params){
        SchemeRegistry registry = new SchemeRegistry();
 
        PlainSocketFactory pf = PlainSocketFactory.getSocketFactory();