You are not logged in.
Pages: 1
Hi AB great work with MVC !!
Now i have a question :
How can I access the Ctxt.InHeaders from one of the MVCApplication Method like Default or Login ?
I want to use the Subdomain/Domain as Switch
Customer1.localhost -> Site for Customer1
Customer2.localhost -> Site for Customer2
Customer3.xxx -> Site for Customer3
In Default / Login i need the Value of the SubDomain.
Last edited by itSDS (2014-11-01 11:49:50)
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
If you are running with the TSQLRestServer.URI() context, you have access to the threadvar ServiceContext.Request field...
So to all the incoming information.![]()
You may also consider running several TMVCApplication, one per customer.
Offline
tyvm with
Result := ServiceContext.Request.InHeader['Host'];i get what i want ![]()
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
Pages: 1