commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eduardo Francos <efranco...@incontext.fr>
Subject Re: [HttpClient) checkValidRedirect() behavior
Date Mon, 09 Dec 2002 11:15:28 GMT
In article <3l35uu07r80n9f169ebsjmj5uomq4m2df0@4ax.com>, Gael Marziou wrote:
> HttpMethodBase.checkValidRedirect() checks various cases where it says
> that HttpClient does not support redirection like port change or host
> change.
> 
> I have 2 questions about this behavior:
> 
> 1. Is this the final expected behavior?
> 
> 2. If so, it may be interesting to replace general exception
> HttpException by a more specific one that could be caught by
> application to open a new connection.
> 
> Thanks for any answer,
> 
> Gael
> 

I'm facing the same problem. My temporary solution is to wrap the call to 
execute and reissue the whole request to the redirection location as returned by 
getResponseHeader("location")

Mime
View raw message