Re: Getting the domain of every request ...
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 46811
interpreted = N
texte = Kenneth Grome wrote:> I guess there's no 100% reliable way of getting the domain of the URL a > visitor came in on ... is there?Your webserver _will_ be setting a MIME header to correspond to the host name, which will contain the domain name requested. Unfortunately, not all web servers use the same header name (M$loth ignores the RFC's for a change ;~).I use [GetMIMEHeader HTTP_HOST] on WebSite/NT for this exact purpose. It is trivial to use [GREP] to extract only the domain portion from that value.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Kenneth Grome wrote:> I guess there's no 100% reliable way of getting the domain of the URL a > visitor came in on ... is there?Your webserver _will_ be setting a MIME header to correspond to the host name, which will contain the domain name requested. Unfortunately, not all web servers use the same header name (M$loth ignores the RFC's for a change ;~).I use [GetMIMEHeader HTTP_HOST] on WebSite/NT for this exact purpose. It is trivial to use [grep] to extract only the domain portion from that value.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
generate sequential numbers (1999)
no [include]s with encryption? (1998)
Missing contexts on NT (1997)
New Beta Documentation (1997)
OLD ORDERS (1998)
shipcost (1997)
New Plug-in and Type 11 errors (1997)
Looking up two prices in database? (1997)
Forms Search Questions (1997)
Re[2]: 2nd WebCatalog2 Feature Request (1996)
ShipCosts database (1997)
$Replace with [founditems] (1997)
Cart/Cookie question (2005)
WebCat & Liststar (1997)
RAM variables (1997)
All choice in popups (1997)
Notepad problems (1998)
international time (1997)
TaxTotal Problem (1997)
too many nested ... problem (1997)