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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 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:

    
  1. Re: Getting the domain of every request ... (Kenneth Grome 2003)
  2. Re: Getting the domain of every request ... (John Peacock 2003)
  3. Re: Getting the domain of every request ... (Kenneth Grome 2003)
  4. Re: Getting the domain of every request ... (John Peacock 2003)
  5. Getting the domain of every request ... (Kenneth Grome 2003)
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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 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)