如何检查在 mule 的请求配置中传递了什么 header

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

我怎样才能知道我的请求是否传递了正确的header。

这是我的header

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

我的请求一次又一次失败,因为没有传递正确的令牌。

更新:

启用 wire-logging 后,我发现我的 Header 的案例没有保留。我启用了机箱,它开始工作了。

您可以使用有线日志记录来查看实际发送的 HTTP 消息。有关详细信息,请参阅此 guide