On Wed, Apr 22, 2009 at 01:16:46AM -0700, Taneeda wrote:
> 
> Hi guys,
> 
> I solved this problem now. The solution ist to remove the RequestConnControl
> and the RequestTargetHost Interceptor from clients (DefaultHttpClient)
> HttpProcessor (BasicHttpProcessor).
> 
> /**
>  * RequestInterceptors adds MUST Headers (defines by the
>  * RFC2616) to each request/response.
>  * 
>  * RequestConnControl:        Connection header
>  * RequestTargetHost: Host header
> */
> ((DefaultHttpClient)client).removeRequestInterceptorByClass(
>       RequestConnControl.class);
> ((DefaultHttpClient)client).removeRequestInterceptorByClass(
>       RequestTargetHost.class);

Yep.

Oleg


> -- 
> View this message in context: 
> http://www.nabble.com/HttpClient-4%3A-Disable-Default-Header-tp23162913p23171806.html
> Sent from the HttpClient-User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to