get value from request header in http call -mule

Dersana Jose picture Dersana Jose · Mar 16, 2015 · Viewed 7.7k times · Source

I am developing a mule application. My start point is http. I need to authenticate my http calls using an authentication token which I am sending as request header. Now, How do I get this request header value in my Mule application?

Answer

Mohan picture Mohan · Mar 16, 2015

suppose if the header name was "authToken" which contains the authentication token. it can be accessed in mule floe with below mel expression
#[message.inboundProperties.authToken]