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:

Log-in Scheme (2003) Outsourcing partnership ... (2005) 4.5.1 download link (2003) Generating unique SKU from [cart] - Still Stumped... (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Username for Admin Group (1997) OT - Public Upload Security (2002) [Announce] Newest Commerce Site based on WebCatalog (1997) Error cart approval pending (2005) Extra carriage returns (1999) How to download a database???/ (2000) Not really WebCat (1997) WebCat2 - [format thousands] (1997) [TaxableTotal] - not working with AOL and IE (1997) [writefile] (1997) Forms Search Questions (1997) [input] [/input] (1997) Visitor info (2000) Middle problem (2004) Country & Ship-to address & other fields ? (1997)