[jira] Created: (CAMEL-997) Http producer should be smarter to select correct GET or POST method

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-997) Http producer should be smarter to select correct GET or POST method

JIRA jira@apache.org
Http producer should be smarter to select correct GET or POST method
---------------------------------------------------------------------

                 Key: CAMEL-997
                 URL: https://issues.apache.org/activemq/browse/CAMEL-997
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-http
    Affects Versions: 1.4.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 1.5.0


The code in HttpProducer should be smarter to select the correct method to use.

Algorithm:
1) if the method is provided in a header
2) GET if a querystring is provided in a header
3) GET if endpoint is configured with a query string
4) POST if there is data to send
5) GET fallback to get

Also the HttpOperationFailedException is missing a message, so you get the error code and description in the stack-trace

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-997) Http producer should be smarter to select correct GET or POST method

JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46570#action_46570 ]

Claus Ibsen commented on CAMEL-997:
-----------------------------------

See nabble:
http://www.nabble.com/camel-http-instructions-for-Query-string-handling-don%27t-work-td20048788s22882.html

> Http producer should be smarter to select correct GET or POST method
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-997
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-997
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> The code in HttpProducer should be smarter to select the correct method to use.
> Algorithm:
> 1) if the method is provided in a header
> 2) GET if a querystring is provided in a header
> 3) GET if endpoint is configured with a query string
> 4) POST if there is data to send
> 5) GET fallback to get
> Also the HttpOperationFailedException is missing a message, so you get the error code and description in the stack-trace

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-997) Http producer should be smarter to select correct GET or POST method

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46571#action_46571 ]

Claus Ibsen commented on CAMEL-997:
-----------------------------------

Also add some logging to the http producer

> Http producer should be smarter to select correct GET or POST method
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-997
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-997
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> The code in HttpProducer should be smarter to select the correct method to use.
> Algorithm:
> 1) if the method is provided in a header
> 2) GET if a querystring is provided in a header
> 3) GET if endpoint is configured with a query string
> 4) POST if there is data to send
> 5) GET fallback to get
> Also the HttpOperationFailedException is missing a message, so you get the error code and description in the stack-trace

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-997) Http producer should be smarter to select correct GET or POST method

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46572#action_46572 ]

Claus Ibsen commented on CAMEL-997:
-----------------------------------

Add an option to set follow redirects on/off

> Http producer should be smarter to select correct GET or POST method
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-997
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-997
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> The code in HttpProducer should be smarter to select the correct method to use.
> Algorithm:
> 1) if the method is provided in a header
> 2) GET if a querystring is provided in a header
> 3) GET if endpoint is configured with a query string
> 4) POST if there is data to send
> 5) GET fallback to get
> Also the HttpOperationFailedException is missing a message, so you get the error code and description in the stack-trace

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

Reply | Threaded
Open this post in threaded view
|

[jira] Work started: (CAMEL-997) Http producer should be smarter to select correct GET or POST method

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Work on CAMEL-997 started by Claus Ibsen.

> Http producer should be smarter to select correct GET or POST method
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-997
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-997
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> The code in HttpProducer should be smarter to select the correct method to use.
> Algorithm:
> 1) if the method is provided in a header
> 2) GET if a querystring is provided in a header
> 3) GET if endpoint is configured with a query string
> 4) POST if there is data to send
> 5) GET fallback to get
> Also the HttpOperationFailedException is missing a message, so you get the error code and description in the stack-trace

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-997) Http producer should be smarter to select correct GET or POST method

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Claus Ibsen resolved CAMEL-997.
-------------------------------

    Resolution: Fixed

Updated with with algorithm used

> Http producer should be smarter to select correct GET or POST method
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-997
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-997
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> The code in HttpProducer should be smarter to select the correct method to use.
> Algorithm:
> 1) if the method is provided in a header
> 2) GET if a querystring is provided in a header
> 3) GET if endpoint is configured with a query string
> 4) POST if there is data to send
> 5) GET fallback to get
> Also the HttpOperationFailedException is missing a message, so you get the error code and description in the stack-trace

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