#1 2015-01-05 12:18:44

vladon
Member
From: Naberezhnye Chelny
Registered: 2014-09-03
Posts: 8
Website

[NOOBIE] How to get remote IP address and hostname in SQLRestServer?

URLs like http://<myserver>:myport/root/mymethod

How in TSQLRestServerFullMemory descendant in TSQLRestServerFullMemory.MyMethod to get a remote IP and remote called hostname?

E.g. myserver1 = CNAME myserver, myserver2 = CNAME myserver.

Or how can I in one http server do different logic based on remote IP and hostname?

Offline

#2 2015-01-05 12:46:02

vladon
Member
From: Naberezhnye Chelny
Registered: 2014-09-03
Posts: 8
Website

Re: [NOOBIE] How to get remote IP address and hostname in SQLRestServer?

Sorry, I found them:

Ctxt.InHeader[RemoteIP]
Ctxt.InHeader[Host]

smile

Offline

Board footer

Powered by FluxBB