Announcement

Collapse
No announcement yet.

HTTP Sender: Dynamically set Query Parameters

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTTP Sender: Dynamically set Query Parameters

    Hi,

    I have a HTTP Sender where I want to provide a combination of search parameters as query parameters to the HTTP GET request.

    I can pass through the parameters if they are provided, but if they are not provided, as all of them are optional, I get the string ${myparam} in the encoded url.

    Is there a way to avoid this?

    Or maybe even better, is there are way to set the Query Parameters from the transfomation step of the HTTP Sender destination?

    Thank you!!

    Kind regards,

    Kristof Taveirne

  • #2
    In 2020 I have the same question and I land on my own post

    I have a HTTP receiver and a HTTP sender .... I need to copy the query from source to sender to pass it as is.

    Is there a way to do this in a transformer?

    Thank you,

    Kristof.

    Comment


    • #3
      Hi kristof.taveirne,

      about your question on query parameter, I asume that you are using static query parameters in mirth interface. The way to generate manually query parameters is to create it in destination transformer as a string and then concatenate it to the address. In this way, if you do not receive any variable, you simply will add a '' to the url.

      HTH,

      RB

      Comment


      • #4
        Hi kristof.taveirne,

        about your question, please send a message to a http receiver and check variables in source. You will see the query in a mirth variable, simply retrieve it in destination and use it in http sender.

        HTH,

        RB


        Originally posted by kristof.taveirne View Post
        In 2020 I have the same question and I land on my own post

        I have a HTTP receiver and a HTTP sender .... I need to copy the query from source to sender to pass it as is.

        Is there a way to do this in a transformer?

        Thank you,

        Kristof.

        Comment

        Working...
        X