> There is a small problem with your code. The following getLocation
> implementation will produce the expected result.
>
> private static URL getLocation(HttpContext context)
>  throws MalformedURLException {
>        HttpUriRequest finalRequest = (HttpUriRequest) context
>                .getAttribute(ExecutionContext.HTTP_REQUEST);
>        return finalRequest.getURI().toURL();
>    }
>

I see. So, to summarize this thread, if I want to know where a request
was redirected, I should NOT use the code provided here:

http://marc.info/?l=httpclient-users&m=121147890106497&w=2

but, rather, should use the code you provided above.  That solves my
problem.  Thanks for the help!

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to