cancel
Showing results for 
Search instead for 
Did you mean: 

Can we find the URL address (Domain name) from where the ODATA request is raised?

former_member733472
Discoverer
0 Kudos

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?

Accepted Solutions (0)

Answers (3)

Answers (3)

nitschket
Advisor
Advisor
0 Kudos

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.

nitschket
Advisor
Advisor
0 Kudos

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.

former_member733472
Discoverer
0 Kudos

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?

former_member733472
Discoverer
0 Kudos

odata2019, anubhav_abap, anubhav.oberoy, thomas.nitschke, sumit.joshi2, thomas.jung

Can any one suggest pls?