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:54:23 UTC

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

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


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.


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

Posted by "Nicky Sandhu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40173 ] 

Nicky Sandhu commented on CAMEL-156:
------------------------------------

The string for query should be encoded correctly 'application/x-www-form-urlencoded'...EncodingUtil does this...I am not sure how to do this... so for right now the onus on the user to encode the query string correctly

> 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.


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

Posted by "James Strachan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Strachan resolved CAMEL-156.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.0

Many thanks - patch applied!

> 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
>             Fix For: 1.2.0
>
>         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.


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

Posted by "Nicky Sandhu (JIRA)" <ji...@apache.org>.
     [ 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.