You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "v.detez@gmail.com" <v....@gmail.com> on 2011/09/06 12:52:11 UTC

http4 and request redirection

Hello

Could I use jetty and http4 to do redirect request.

My goal : have an http server via camel jetty and send the received request
via a proxy to the net.

<route>
         
         <from uri="jetty:http://localhost:6666/test/"/>
         <to
uri="http4://www.google.com/?proxyHost=myproxy.be&proxyPort=8080&proxyUsername=toto&proxyDomain=CORP&proxyPassword=papassw"/>
        </route>

Could it be running?

Valery

--
View this message in context: http://camel.465427.n5.nabble.com/http4-and-request-redirection-tp4773971p4773971.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: http4 and request redirection

Posted by Willem Jiang <wi...@gmail.com>.
You may need to enable the bridgeEndpoint on the Jetty endpoint like 
this
from("jetty:http://localhost:6666/test/?bridgeEndpoint=true").to("http4:xxx");

On Tue Sep  6 18:52:11 2011, v.detez@gmail.com wrote:
> Hello
>
> Could I use jetty and http4 to do redirect request.
>
> My goal : have an http server via camel jetty and send the received request
> via a proxy to the net.
>
> <route>
>
>           <from uri="jetty:http://localhost:6666/test/"/>
>           <to
> uri="http4://www.google.com/?proxyHost=myproxy.be&proxyPort=8080&proxyUsername=toto&proxyDomain=CORP&proxyPassword=papassw"/>
>          </route>
>
> Could it be running?
>
> Valery
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/http4-and-request-redirection-tp4773971p4773971.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>



-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang 
Weibo: willemjiang