You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Nicky Sandhu (JIRA)" <ji...@apache.org> on 2007/09/24 19:58:22 UTC

[jira] Updated: (CAMEL-156) set query parameters dynamically on http get requests

     [ https://issues.apache.org/activemq/browse/CAMEL-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicky Sandhu updated CAMEL-156:
-------------------------------

    Attachment: patch.txt

This patch adds a QUERY constant to HttpProducer. This is the name used in the "In" message header to set the query parameter string.
The attached unit test shows how to do this...heres a snippet

from("direct:start").setHeader(HttpProducer.QUERY,constant("hl=en&q=activemq")).to("http://www.google.com/search").to("mock:results");


> set query parameters dynamically on http get requests
> -----------------------------------------------------
>
>                 Key: CAMEL-156
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-156
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>            Reporter: Nicky Sandhu
>         Attachments: patch.txt
>
>
> The get method needs a facility to set the query parameters dynamically. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.