简体   繁体   中英

Mulesoft dynamic http routing based on the input

I am new to mulesoft 4.4, I can to send http request to url xyz with one http_request_configuration, but I need to select application url dynamically based on the users input payload (kind of http routing with different host), I don't know how to achieve this in mulesoft. Do I need to crate multiple http_request_configuration for this?

Kind regards J Babu

You can set the URL at the HTTP Request operation level. For example using a variable:

        <http:request method="GET" doc:name="Request" url="#[vars.myUrl]"/>

Note that you should not try to use the URL to add query parameters. Use the HTTP Request query params feature for that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM