Search code examples
muledataweaveanypoint-studio

How to check what header is passed in the request configuration in mule


How can I find out whether the right header has been passed to my request or not.

This is my header

<http:headers ><![CDATA[#[output application/java
---
{
    Authorization : vars.authorizationToken
}]]]></http:headers>

My request is failing again and again as right token is not passed.

UPDATE:

After enabling wire-logging.I observed that my Header's case was not preserved. I enabled the case and it started working.


Solution

  • You can use wire logging to see the actual HTTP message being sent. See this guide for details.