In method getLocationURI(HttpResponse, HttpContext) of org.apache.http.impl.client.DefaultRedirectHandler:

if (uri.getQuery() != null || uri.getFragment() != null) {
    try {
        redirectURI = new URI(
                uri.getScheme(),
                null,
                uri.getHost(),
                uri.getPort(),
                uri.getPath(),
                null,
                null);
    } catch (URISyntaxException ex) {
        throw new ProtocolException(ex.getMessage(), ex);
    }
}

Why is the new URI created without the query component?

A redirect from http://example.org/foo?bar to A redirect from http://example.org/foo?blah would so result in a CircularRedirectException.

--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to