24
Views
2
Comments
REST API: how to obtain the calling application domain
Question

Hi,

I'm exposing some REST API. Inside a method I need to know what is the domain (server) from which the call was made. HTTPRequestHandler.GetRequestDomain() returns the domain (server) of the API itself so it's not a solution.

Any idea?

Regards

Tomasz

Hi Tomasz,

have you tried the method GetIP ?

From what I've read on the documentation is sounds like for what you want.

Hi,

Yes, it works. Better this than nothing. But it is still only IP, not a domain name.

Regards

Tomasz

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.