Thanks again. No success yet. I tried that route with my spring app and got org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http//www.facebook.com:80/?amp%3BthrowExceptionOnFailure=false with statusCode: 500
very odd the url isn't correctly formed (no : ) http//www.facebook.com:80 Not the same error but it should work! so i created a very small project with no spring etc based on that link. Only one class but same error: public class Routes extends RouteBuilder { public void configure() throws Exception { this.from("jetty:http://0.0.0.0:8081/proxy?matchOnUriPrefix=true") .to("jetty:http://www.facebook.com?bridgeEndpoint=true&throwExceptionOnFailure=false"); } public static void main(String args[]) throws Exception { CamelContext camel = new DefaultCamelContext(); Routes routes = new Routes(); camel.addRoutes(routes); camel.start(); } } so in my spring app i tried : public class RequestHandler extends RouteBuilder { @Override public void configure() throws Exception { this.from("servlet:///?matchOnUriPrefix=true") .to("jetty:http://www.facebook.com?bridgeEndpoint=true&throwExceptionOnFailure=false"); }}; Using localhost:8080/a/a at least produces a url (still missing : ) but with the correct path appended http//www.facebook.com:80/a/a maybe this is getting closer? On 28/11/2012, at 11:53 AM, lleclerc <llecl...@aim-rg.com> wrote: > this might help too : > http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Simple-HTTP-proxy-tp5723322p5723326.html > Sent from the Camel - Users mailing list archive at Nabble.com.