Я звоню в веб-службу SAP из сценария Powershell, и POST завершается с ошибкой «Ошибка проверки токена CSRF»
I call the same Web Services from Postman, and it works
I can see in the Payload Trace from Powershell Script, that the
Connection : Keep-Alive parameter is not set in the Header
I have tried to set it in the Header by adding the following
$Headers = @{ Authorization = $basicAuthValue
'X-CSRF-Token' = "Fetch"
'connection' = 'Keep-Alive'
}
but receive the following error
ErrorMessage : The 'connection' header must be modified using the
appropriate property or method.
Parameter name: name
Any tips ?