Embed presentation
Download to read offline





![ <?xml version="1.0" encoding="UTF-8"?> <mule
xmlns="http://www.mulesoft.org/schema/mule/core"
version="EE-3.7.3"> <http:listener-config
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:doc="http://www.mulesoft.org/schema/mule/documenta
tion" name="HTTP_Listener_Configuration" host="0.0.0.0"
port="8081" doc:name="HTTP Listener Configuration">
</http:listener-config> <flow name="httpqueryparamsFlow">
<http:listener
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:doc="http://www.mulesoft.org/schema/mule/documenta
tion" config-ref="HTTP_Listener_Configuration" path="/*"
doc:name="HTTP"> </http:listener> <logger
xmlns:doc="http://www.mulesoft.org/schema/mule/documenta
tion"
message=""#[message.inboundProperties.'http.query.para
ms'.id]"" level="INFO" doc:name="Logger"> </logger>
</flow> </mule>](https://image.slidesharecdn.com/howtogethttpqueryparametersinmule-160721045316/85/How-to-get-http-query-parameters-in-mule-6-320.jpg)
![ <?xml version="1.0" encoding="UTF-8"?>
<flow name="httpqueryparamsFlow">
<http:listener config-
ref="HTTP_Listener_Configuration" path="/*"
doc:name="HTTP"> </http:listener> <logger
message=""#[message.inboundProperti
es.'http.query.params'.id]"" level="INFO"
doc:name="Logger"> </logger> </flow>](https://image.slidesharecdn.com/howtogethttpqueryparametersinmule-160721045316/85/How-to-get-http-query-parameters-in-mule-7-320.jpg)





This document provides an example of how to get HTTP query parameters in Mule. The example defines an HTTP listener configuration on port 8081 that listens for any path. It then defines a flow with a logger that prints the value of the "id" query parameter to the console. When accessing http://localhost:8081/?id=hello, it will print "hello" to the Mule console.





![ <?xml version="1.0" encoding="UTF-8"?> <mule
xmlns="http://www.mulesoft.org/schema/mule/core"
version="EE-3.7.3"> <http:listener-config
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:doc="http://www.mulesoft.org/schema/mule/documenta
tion" name="HTTP_Listener_Configuration" host="0.0.0.0"
port="8081" doc:name="HTTP Listener Configuration">
</http:listener-config> <flow name="httpqueryparamsFlow">
<http:listener
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:doc="http://www.mulesoft.org/schema/mule/documenta
tion" config-ref="HTTP_Listener_Configuration" path="/*"
doc:name="HTTP"> </http:listener> <logger
xmlns:doc="http://www.mulesoft.org/schema/mule/documenta
tion"
message=""#[message.inboundProperties.'http.query.para
ms'.id]"" level="INFO" doc:name="Logger"> </logger>
</flow> </mule>](https://image.slidesharecdn.com/howtogethttpqueryparametersinmule-160721045316/85/How-to-get-http-query-parameters-in-mule-6-320.jpg)
![ <?xml version="1.0" encoding="UTF-8"?>
<flow name="httpqueryparamsFlow">
<http:listener config-
ref="HTTP_Listener_Configuration" path="/*"
doc:name="HTTP"> </http:listener> <logger
message=""#[message.inboundProperti
es.'http.query.params'.id]"" level="INFO"
doc:name="Logger"> </logger> </flow>](https://image.slidesharecdn.com/howtogethttpqueryparametersinmule-160721045316/85/How-to-get-http-query-parameters-in-mule-7-320.jpg)



