Hello, I'm using a Redirector in MODE_DISPATCHER. I can easily use it to forward HTTP requests that come from the client to another URI, e.g.: http://localhost/forward -> http://www.example.com What I'm trying to do now, is to forward an HTTP request to an HTTPS URI, e.g.: http://localhost/forward -> https://www.example.com In the client (browser) I get a 200 OK response with the headers: Content-Length: 0 Date: Wed, 25 Mar 2009 18:01:10 GMT Accept-Ranges: bytes Server: Noelios-Restlet-Engine/1.1.3 Connection: close, which is an empty response with 200 OK.
That much about the problem, here's some code. The TestApp class: public class TestApp extends Application { public synchronized Restlet createRoot() { Router router = new Router(getContext()); Redirector red = new Redirector(getContext(),"https://www.example.com",Redirector.MODE_DISPATCHER); router.attach("/redirect",red); return router; } } and the main method: public static void main(String[] args) { try { Component component = new Component(); component.getClients().add(Protocol.HTTPS); component.getServers().add(Protocol.HTTP, 8182); component.getDefaultHost().attachDefault(new TestApp()); component.start(); } catch (Exception e) { e.printStackTrace(); } } Matt ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1419612