At first glance, I'd suspect that the default google.com page has some relative resources that it's trying to load and is re-obtaining the page, the browser finds relative resources on the page to load (css, javascript, images etc) and re-rendering them...
Try a wget / curl on it and see the order of the fetches (place a limit obviously). On Tue, Dec 13, 2011 at 4:03 PM, xverges <[email protected]> wrote: > Hello all. > > I've tried to create an http proxy/router using dynamic routing. The > simplest attempt was > > from("jetty:http://0.0.0.0:8080/dynamic/?matchOnUriPrefix=true") > > .dynamicRouter(constant(" > http://www.google.com/?q=camel&bridgeEndpoint=true&throwExceptionOnFailure=false > ")); > > It doesn't work, but I'm not even sure if it should. > > The thing is that it gets into an endless loop of > > HttpProducer DEBUG Executing http GET method: > http://www.google.com/?q=camel > HttpProducer DEBUG Http responseCode: 200 > HttpProducer DEBUG Executing http GET method: > http://www.google.com/?q=camel > HttpProducer DEBUG Http responseCode: 200 > HttpProducer DEBUG Executing http GET method: > http://www.google.com/?q=camel > HttpProducer DEBUG Http responseCode: 200 > > Did I hit a bug or am I attempting something that doesn't make any sense? > > Thanks for your time. > -Xavier > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamic-routing-and-bridgeEndpoint-tp5072766p5072766.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- ------------------------------------------- Craig Taylor [email protected]
