Re: How to use camel servlet as httpproxy

2013-05-13 Thread kalyan
I noticed that there was a problem in stub implementation and so GET requests were not working properly. I don't think it is an issue with camel anymore. However, I notice that Camel specifically removes Content-Type header for GET requests even when the incoming request (to say "servlet:///test"

Re: How to use camel servlet as httpproxy

2013-05-13 Thread Claus Ibsen
Hi If you have a small sample project as a .zip or .tar then if some people have the time, they can take a look. Though no promises, as most of us is busy with all sorts of work stuff. The query parameters (assuming you refer to foo=bar&me=you, then they ought to be transferred when bridging. Th

Re: How to use camel servlet as httpproxy

2013-05-11 Thread kalyan
Also I tried setting it by Exchange.HTTP_PATH with no luck as follows: exchange.getIn().setHeader(Exchange.HTTP_PATH, path); -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-camel-servlet-as-httpproxy-tp5732297p5732339.html Sent from the Camel - Users mailing list

Re: How to use camel servlet as httpproxy

2013-05-11 Thread kalyan
Hello Claus, Thank you for the reply. However this option is is taking care of only PATH and not query params. Is there a way to instruct camel to cascade the query params as well ? Regards, Kalyan -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-camel-servlet-as-

Re: How to use camel servlet as httpproxy

2013-05-10 Thread Claus Ibsen
Hi Yeah see also http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html On Fri, May 10, 2013 at 8:03 PM, kalyan wrote: > Sorry for the lame question. The answer is at camel-servlet documentation > . > > I needed from("se

Re: How to use camel servlet as httpproxy

2013-05-10 Thread kalyan
Sorry for the lame question. The answer is at camel-servlet documentation . I needed from("servlet:///hello?matchOnUriPrefix=true") -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-camel-servlet-as-httpproxy-tp5732297p57323