Using the send-request Policy in Azure APIM. Able to get the response and extract the Body. However, struggling with extracting the response headers ?
Here is the code I am using to send the request with the send-request policy in the inbound section, i need to acces the response header of my request then perform another request with this header.
<send-request mode="new" response-variable-name="cookieContext" timeout="20" ignore-error="true">
<set-url>{{SOAPAPIURL}}</set-url>
<set-method>POST</set-method>
<set-header name="SOAPAction" exists-action="override">
<value>"AuthenticationService"</value>
</set-header>
<set-header name="Content-Type" exists-action="override">
<value>text/xml</value>
</set-header>
<set-body template="liquid">
{{soapBodyXml}}
</s:Body>
</s:Envelope>
</set-body>
</send-request>