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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...