Gilbert Gilbert - 6 days ago 4x
HTTP Question

How to get the incoming cookies to a Mule HTTP end point

I'm using Mule EE 3.5.2.
I'm posting an HTTP request (PostMan) with a cookie header, to an incoming HTTP end point in Mule. How can I read this Cookie?
In practice this cookie will be coming through an NGinX proxy; i need it to pass to another application.


First make sure your connector have enableCookies="true".

Then you'll find a inboundProperty called cookies of type Lorg.apache.commons.httpclient.Cookie.

To access them just #[message.inboundProperties['cookies'].