hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thuannd <nhudinhth...@yahoo.com>
Subject Re: [HttpClient trunk] redirect loses request headers
Date Wed, 23 Apr 2008 06:46:17 GMT



Johannes Koch-4 wrote:
> 
> Hi,
> 
> when after a redirect response a retry is done by the 
> DefaultClientRequestDirector, the RoutedRequest returned by the 
> handleResponse method does not contain the request headers from the 
> original request. Is this behaviour intended? How can I get the headers 
> from the first request into the second? Do I have to add a request 
> interceptor?
> 
> -- 
> Johannes Koch
> BIKA Web Compliance Center - Fraunhofer FIT
> Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
> Phone: +49-2241-142628    Fax: +49-2241-142065
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> httpcomponents-dev-help@jakarta.apache.org
> 
> 
> 

In "protected RoutedRequest handleResponse(..." method of
DefaultClientRequestDirector class
goto line: HttpGet redirect = new HttpGet(uri); 
then add: redirect.setHeaders(request.getAllHeaders());
compile httpclient project.
-- 
View this message in context: http://www.nabble.com/-HttpClient-trunk--redirect-loses-request-headers-tp12903389p16832335.html
Sent from the HttpComponents-Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message