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!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...