View previous topic :: View next topic |
Author |
Message |
mpreuett
Joined: 12 Sep 2005 Posts: 7
|
Posted: Sat Sep 17, 2005 12:02 am Post subject: Obtaining the Domain that a licensed DLL is operating under |
|
|
Hello everyone,
This may be an off topic request. Hopefully someone can point me in the right direction.
I have a licensed DLL that can be used in a web or windows app. What I am wondering is how can I write some function in the DLL to determine what domain the DLL is running under when it is used for a web app? I'm wanting to to do this because i have a licensing web service that I want to pass the domain to for determination on whether or not someone's subscription is active.
Any thoughts?
Thanks in advance for any suggestions. |
|
Back to top |
|
|
phil morris Guest
|
Posted: Tue Nov 01, 2005 1:44 pm Post subject: |
|
|
SImply use the Request.Server["HTTP_HOST'] value to extract the URL of the current web domain. |
|
Back to top |
|
|
Phil Morris Guest
|
Posted: Tue Nov 01, 2005 2:04 pm Post subject: |
|
|
Er, try Request.ServerVariables[HTTP_HOST"] instead!!! |
|
Back to top |
|
|
|