cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Header is missing in HTTPS request reply API call

ErikDM
Explorer
5,972

I'm sending a request with 4 Headers:

- Date: 2020-07-06T13:05:56Z

- Authorization: Bearer access token
- Accept: application/vnd.api+json

- Digest: SHA512(raw_payload)
- Signature: BASE64(RSA_SHA256_SIGN(PRIVATE_KEY,SIGNING_STRING))

But the target system does not receive my date-header that is required?

Is there anyone who can me help out here why this header is not sended???

View Entire Topic
Sriprasadsbhat
Active Contributor
0 Likes

Hello Eric,

Please check with your 3rd party system if they have any place enable these headers.From SAP CPI side whatever the headers that is shown in Trace would be sent as is so may be you can check quickly posting the same data using Postman or any other HTTP client.

Regards,

Sriprasad Shivaram Bhat

ErikDM
Explorer
0 Likes

Postman sends the request with Date-header correctly to the 3th party application.

While doing a test with a dummy iFlow we try to send 2 header:
Date & Date1

Result:
Only Date1 is accessible in the dummy iFlow!

Conclusion:
The problem is inside SAP CPI
that is blocking the use of this header

Regards,
Erik

ErikDM
Explorer
0 Likes

Hi,
The Http HeaderFilterStrategy of the SAP-CPI camel framework filters out all the general http headers.
All other headers are converted to HTTP headers in the target message, with the exception of the following headers, which are blocked (based on a case-insensitive match):
content-length content-type cache-control connection date pragma trailer transfer-encoding upgrade via warning

Is there a possibility to override this settings???

I really need the Date-header for my request!

Regards,
Erik