on 03-09-2021 6:37 AM
I need to find the origin URL (Domain) from where the ODATA request is made to the SAP system.
For example: Can we identify the OData requests raised from POSTMAN.
When we trigger a OData service from Postman either get or post we receive the status and the response body back to Postman. How post man gets the response? How SAP identifies the Postman and returns the response?
Don't think so.
If you want to 'identify' the caller, you might want to use custom http headers. But please consider that this is by no means secure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The question is: why? This topic is not really an OData topic but rather a question to the http protocol. The http communication between client and server is handled by the ICF on the ABAP server side -> the real endpoints can be viewed in transaction SICF where entries for the OData services exist, too.
Those endpoints are created on activation of the OData service. The ICF delegates processing through so-called handlers and there is a specific handler for OData services - again, you can find this in SICF.
There is certain information on the remote (the client) address available in the http headers, I think header
~remote-addr
for example. But I am not sure whether this header is still available in the OData service implementations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi thomas.nitschke,
Thanks for the Reply But when I tried it, the mentioned field contains the IP address, not the host name.
In my use case I need the host name. For example if I am triggering a OData call from this page with the URL "https://answers.sap.com/questions/13310720/can-we-find-the-url-address-domain-name-from-where.html?childToView=13312658#answer-13312658"
I need to extract "answers.sap.com". Is it possible?
odata2019, anubhav_abap, anubhav.oberoy, thomas.nitschke, sumit.joshi2, thomas.jung
Can any one suggest pls?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.