@Override
    protected BasicHttpProcessor createHttpProcessor() {
        BasicHttpProcessor httpproc = new BasicHttpProcessor();
        httpproc.addInterceptor(new RequestDefaultHeaders());
        // Required protocol interceptors
        httpproc.addInterceptor(new RequestContent(true));
        httpproc.addInterceptor(new RequestTargetHost());
        // Recommended protocol interceptors
        httpproc.addInterceptor(new RequestClientConnControl());
        httpproc.addInterceptor(new RequestUserAgent());
        httpproc.addInterceptor(new RequestExpectContinue());
        // HTTP state management interceptors
        httpproc.addInterceptor(new RequestAddCookies());
        httpproc.addInterceptor(new ResponseProcessCookies());
        // HTTP authentication interceptors
        httpproc.addInterceptor(new RequestAuthCache());
        httpproc.addInterceptor(new RequestTargetAuthentication());
        httpproc.addInterceptor(new RequestProxyAuthentication());
        return httpproc;
    }
@ Override protected BasicHttpProcessor createHttpProcessor ( ) { BasicHttpProcessor httpproc = new BasicHttpProcessor ( ) ; httpproc . addInterceptor ( new RequestDefaultHeaders ( ) ) ; httpproc . addInterceptor ( new RequestContent ( true ) ) ; httpproc . addInterceptor ( new RequestTargetHost ( ) ) ; httpproc . addInterceptor ( new RequestClientConnControl ( ) ) ; httpproc . addInterceptor ( new RequestUserAgent ( ) ) ; httpproc . addInterceptor ( new RequestExpectContinue ( ) ) ; httpproc . addInterceptor ( new RequestAddCookies ( ) ) ; httpproc . addInterceptor ( new ResponseProcessCookies ( ) ) ; httpproc . addInterceptor ( new RequestAuthCache ( ) ) ; httpproc . addInterceptor ( new RequestTargetAuthentication ( ) ) ; httpproc . addInterceptor ( new RequestProxyAuthentication ( ) ) ; return httpproc ; }
Override just to set RequestContent(true)