Hello,

I am playing around with the http endpoint in camel 2 and I thought a good
starting point would be to run the testHttpGet() in
http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpGetTest.java

So nothing happens. It just hangs. I suspect this might be because I need to
configure a proxy but I'm not sure how to do that and I can't find any
examples really apart from an old post but again it isn't clear to me.

This is the configure method:
@Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            public void configure() {                   
                from("direct:start")
                .setHeader(HttpConstants.HTTP_METHOD,
constant(org.apache.camel.component.http.HttpMethods.GET))
                    .to("http://www.google.co.uk";).to("mock:results");
            }
        };
    }

I also tried specifying the time out in the endpoint eg)
"http://www.google.co.uk?httpClient.soTimeout(5000)"

But that didn't do anything. I wasn't sure if there was a way I could at
least get something back.

I've also read this useful page. Maybe it would be useful to have an example
as most corporations will be using proxy servers.
http://camel.apache.org/http.html

Thanks
-- 
View this message in context: 
http://www.nabble.com/Http-Endpoint-tp23430772p23430772.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Reply via email to