All Apps and Add-ons

WebTools App - is it possible to read the header of the response?

damucka
Builder

Hello,

I am trying to get the x-crfs-token authentication token from my SAP application per GET as this is necessary for further access:

 

| makeresults count=1
| eval header="{\"x-csrf-token\":\"fetch\"}"
| curl user= pass= method=get headerfield= header debug=true  uri="https://myip/sap/opu/odata/sap/INBOUNDCONNECTOR/InboundAlertSet"

 

 

Now, when I do the above in the Postman, I get an error from the corresponding function (InboundAlertSet) in the response body but also I get the required x-csrf-token passed in the response header.

How would I get / read the response header with the WebTools? Is it possible?

Kind Regards,

Kamil

 

 

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...