Hi,

we actually never got the Redirector working with modes MODE_SERVER_*
(MODE_CLIENT_* were ok).

We have a pretty complex intranet (Central Europe, Brasil, China and more)
and when using the Redirector remote servers always replied with "404".
Requesting the same url with a simple ClientResource delivered a "200". We
are using the Apache HttpClient.

I think the lines 383ff. (2.1jse-snapshot) in Redirector.java do too much,
at least when a Redirector is used further done a filter chain:

            // Update the request to cleanly go to the target URI
            request.setResourceRef(targetRef);
           
request.getAttributes().remove(HeaderConstants.ATTRIBUTE_HEADERS);
            next.handle(request, response);

            // Allow for response rewriting and clean the headers
            response.setEntity(rewrite(response.getEntity()));
           
response.getAttributes().remove(HeaderConstants.ATTRIBUTE_HEADERS);
            request.setResourceRef(resourceRef);
We gave up and use our own ClientResources now, though we miss the
templating capabilities of the Redirector.

BTW, is there a way to switch on logging for ALL headers of request and
response easily?

Guido Schmidt.
-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/RE-Proxying-with-Redirector-tp6014917p6014977.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2703404

Reply via email to