Is [thisurl] http or https?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 19994
interpreted = N
texte = I cannot think of any direct method of determining whether or not the url used to request a page is an http or https url:[thisurl] won't help - it only displays a relative path from the root folder.[issecureclient] won't help - it just detects the SSL capablility of the browser.[listmimeheader] is the closest thing I've found so far that *might* be able to help, here's what it displays:1,Referer,http://204.210.118.206/ClientSites/LeisurePro/vieworder.tpl2,Connection,Keep-Alive3,User-Agent,Mozilla/4.04 (Macintosh; I; 68K, Nav)4,Pragma,no-cache5,Host,204.210.118.2066,Accept,image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*7,Accept-Language,en8,Accept-Charset,iso-8859-1,*,utf-89,Authorization,Basic Z3JvbWVvOnNhcGllbm1vdXNlThe Referer header doesn't help because it doesn't indicate the URL that is requesting the page, instead it gives the URL of the LAST page loaded. None of the other headers looks useful, except maybe the last one ...#9,Authorization,Basic1- Does anyone know if the value of Authorization is ALWAYS 'Basic' when the URL is http?2- What's the value of Authorization when the URL is https instead of http?3- Would this Authorization value change from browser to browser, or would it be the same in all browsers?Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
I cannot think of any direct method of determining whether or not the url used to request a page is an http or https url:
[thisurl] won't help - it only displays a relative path from the root folder.[issecureclient] won't help - it just detects the SSL capablility of the browser.[listmimeheader] is the closest thing I've found so far that *might* be able to help, here's what it displays:1,Referer,http://204.210.118.206/ClientSites/LeisurePro/vieworder.tpl2,Connection,Keep-Alive3,User-Agent,Mozilla/4.04 (Macintosh; I; 68K, Nav)4,Pragma,no-cache5,Host,204.210.118.2066,Accept,image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*7,Accept-Language,en8,Accept-Charset,iso-8859-1,*,utf-89,Authorization,Basic Z3JvbWVvOnNhcGllbm1vdXNlThe Referer header doesn't help because it doesn't indicate the URL that is requesting the page, instead it gives the URL of the LAST page loaded. None of the other headers looks useful, except maybe the last one ...#9,Authorization,Basic1- Does anyone know if the value of Authorization is ALWAYS 'Basic' when the URL is http?2- What's the value of Authorization when the URL is https instead of http?3- Would this Authorization value change from browser to browser, or would it be the same in all browsers?Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
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:
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Mac Vs WindowsNT (1997)
webmerch and serials - almost there (1997)
Problem with broken images (2004)
WebCommerce: Folder organization ? (1997)
Searching an Email database (1997)
(1998)
Is the Finder required? (1998)
Can't save email prefs (2003)
A Global Variable (1997)
Emailer setup (1997)
Roundup function? (1997)
Navigator 4.01 (1997)
Problem (1997)
California Tax Rates (1998)
request for comment tag (1998)
RE: HTTP Header info (1997)
WebCatalog [FoundItems] Problem - AGAIN - (1997)
textarea inputs and returns (1999)
Country & Ship-to address & other fields ? (1997)