Hi,

You might want to use a bean with a Producer Template instead of the http
endpoint directly. Then you can get the exchange and use your settings to
send the request to the HTTP endpoint using template.sendbody(...).

For more details check out the section "URI Parameters from the Message" at
the link  http://camel.apache.org/http.html
http://camel.apache.org/http.html 

For eg.

      Map headers = new HashMap();
      headers.put(HttpProducer.QUERY, "q=Camel&lr=lang_en");
      // we query for Camel and English language at Google
      template.sendBody("http://www.google.com/search";, null, headers);

Hope this helps.

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/Problem-setting-Authentification-using-HttpProducer-and-dynamic-URIs-tp3424412p3426030.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to