Re: Getting the domain of every request ...

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 46812
interpreted = N
texte = >> 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 ;~).Thanks John, in my tests they all set at least one mime header with the string HOST in it. Maybe I can show only the mime headers with a name that contains HOST (I assume that there's usually only one with HOST in it, but who knows?) then I can grep the value of those mime headers in order to extract only the domain name. Can you think of any problems with this approach? Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- 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)
>> 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 ;~).Thanks John, in my tests they all set at least one mime header with the string HOST in it. Maybe I can show only the mime headers with a name that contains HOST (I assume that there's usually only one with HOST in it, but who knows?) then I can grep the value of those mime headers in order to extract only the domain name. Can you think of any problems with this approach? Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- 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/ Kenneth Grome

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:

absolute paths for databases? (1997) Searching multiple Databases (1997) Setting up shop (1997) shipcost (1997) Problems getting parameters passed into email. (1997) Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) How do you TEAM Code? (2004) Multiple SSL Keys (1998) Can WC remember people? (1998) EIMS Problems (1997) WebCatalog can't find database (1997) Running 2 two WebCatalog.acgi's (1996) Dummy Credit Card Number for debug? (1997) Some Questions (1997) removing programming logic white space (2003) More Shopping Cart Problems (2000) Removing user entered whitespace... (2004) F3 crashing server (1997) Separate SSL Server (1997) [WebDNA] WebDNA glitch, no response required ... (2009)