camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Consuming from a http endpoint
Date Thu, 23 Aug 2007 13:37:46 GMT
On 8/22/07, Hiram Chirino <hiram@hiramchirino.com> wrote:
> If you want to post or get data from an http endpoint you are sending
> data to it...  I makes sense you need a http component that can
> produce to the endpoint.  So you need a route that looks like:
>
> from("direct:a").to("http://www.google.com");
>
> But right now our HTTP component does not implement the producer part.
> If someone wants to take a stab at implementing it please let me know.
>  I might be able to guide you down the right path.

FWIW there is a HttpProducer which uses commons httpclient. The
HttpRouteTest test case sends to a http endpoint (using
commons-httpclient) then consumes from the endpoint using the embedded
jetty server

-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message