Re: Re Running Locally

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38117
interpreted = N
texte = Rob Marquardt wrote: > > When setting the cookie, use: > > domain=[getMIMEheader name=Host] > You should be aware that WebTV, in it's infinite stupidity, returns the port number as part of the host name (since it is the browser that is setting this variable) when the user is connected via SSL. So: [getMIMEheader name=Host]prints as www.domain.xxx:143Use something like this [grep search=(www\.[a-zA-Z]*\.com)&replace=\1][GetMIMEHeader HTTP_HOST][/grep]to get rid of the port number. You can even use this: [grep search=www\.([a-zA-Z]*\.com)&replace=\1][GetMIMEHeader HTTP_HOST][/grep]if you want to just extract the current domain (obviously change .com if you are not using that gTLD). We use this in common include files which are used by multiple sites.HTHJohn-- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Re Running Locally (John Peacock 2001)
  2. Re: Re Running Locally (Rob Marquardt 2001)
  3. Re: Re Running Locally (Nitai @ ComputerOil 2001)
  4. Re Running Locally (Velma Kahn 2001)
Rob Marquardt wrote: > > When setting the cookie, use: > > domain=[getMIMEheader name=Host] > You should be aware that WebTV, in it's infinite stupidity, returns the port number as part of the host name (since it is the browser that is setting this variable) when the user is connected via SSL. So: [getMIMEheader name=Host]prints as www.domain.xxx:143Use something like this [grep search=(www\.[a-zA-Z]*\.com)&replace=\1][GetMIMEHeader HTTP_HOST][/grep]to get rid of the port number. You can even use this: [grep search=www\.([a-zA-Z]*\.com)&replace=\1][GetMIMEHeader HTTP_HOST][/grep]if you want to just extract the current domain (obviously change .com if you are not using that gTLD). We use this in common include files which are used by multiple sites.HTHJohn-- 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://search.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:

Opinion: [input] should be called [output] ... (1997) Here we go again... was: DDEConnect not working (2006) Bug? (1997) protect tag on NT IIS (1997) emailer w/F2 (1997) Reversed words (1997) syntax question, not in online refernce (1997) Claris HomePage messes up the code (1997) RE: Include (1998) Robust WebDNA Job Manager / Accountant (2006) RE: New WebCatalog Version !!! (1997) Memory Error message (1998) Download (1999) WebCat virtual postcard is done! Thanks for the help! (1998) Cart date/time (2006) Redirect in 4.0 (2000) tcpsend (2001) Organisation website (2005) [Shell] question (2000) is there a [purchase]? (1998)