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 Center175 J. Llorente Street +63 (32) 255-6921Cebu City, Cebu 6000 kengrome@webdna.netPhilippines 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:
>> 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 Center175 J. Llorente Street +63 (32) 255-6921Cebu City, Cebu 6000 kengrome@webdna.netPhilippines 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:
remotely add + sign (1997)
Only charge card when product shipped ? (1997)
[GetMIMEHeader] does not work (under Linux?) (2000)
Sending E-mail (1997)
problems with 2 tags (1997)
formula.db question (1997)
Grouping Fields (2006)
Alternating colors (1997)
WebCat2 - many [carts] on one template page? (1997)
[WebDNA] Check for Ending Carriage Return (2009)
[cart]'s ever get recycled? (2000)
search same field twice??? (1999)
WebCatalog Technical Reference (1997)
Random (2000)
no global [username] or [password] displayed ... (1997)
2.0Beta Command Ref (can't find this instruction) (1997)
Thanks for tips, more quest (1997)
Upgrading from version (1998)
WC2.0 Memory Requirements (1997)
Sherlock and WebCat (1998)