Hi Han Pieter,
You might want to take a look at this question (and answer) on stackoverflow: https://stackoverflow.com/questions/978061/http-get-with-request-body
→ “So, yes, you can send a body with GET, and no, it is never useful to do so.”
→ “...if the request method does not include defined semantics for an entity-body, then the message-body SHOULD be ignored when handling the request.”
So, it might be possible, but should not be used.
I see you’re trying to use SAP services. When performing a GET-call to – for example – the SAP Gateway endpoints, you should be able to pass data to that endpoint via URL-query. Examples:
Other data (for example auth-data) can be given in the HTTP Authorization-header. For example, a Basic Authentication with Base64 encryption could result in the header ‘Authorization’:’Basic c2ltY...’
Your Postman GET-requests works because Postman completely ignores your body you entered.
Hope this helps!
Kind regards,
Leander