Re: Detecting SSL or port

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 60957
interpreted = N
texte = I do have a very bad solution based on javascript, but I don't wish to use it, because i wish to control it entirely serverside. Futhermore there are some other solutions base on the software of the webserver but i can't really make these solutions work the way i like. An idea would be you call an ASP page that checks the port, but is it possible to get the result from the asp-page into the Webdna - i can't really see it happeing :-( Further more i played with the idea of calling the ASP script via the TCPConnect - but I cannot see this working either since you have to specify with port to use :-(( Yeah, well the problem is I really don't feel i have a 100% safe solution before Webcatalog (Webdna) is able to tell me if the connection is safe (SSL) or just which port being used for the connection. So instead of the relative unusefull [IsSecureClient], it would be great with a very usefull [IsSecureServer] or just as good [ServerPort] Morten -----Original Message----- From: Donovan Brooke [mailto:dbrooke@euca.us] Sent: 7. februar 2005 17:25 To: WebDNA Talk Subject: Re: Detecting SSL or port Hi Morten, I used to do this by port as well.. But I had to use SSI as WebDNA doesn't have SERVER_PORT. In the old versions of webcatalog I was able to process SSI before or after webdna (my choosing). The newer versions don't seem so integrated with SSI. It seems there really are only two ways of checking against this.. PORT or by the URL (looking for the "s" in HTTPS). There is no [serverport] context in webdna and [thisurl] does not show the protocol.. so... I dunno.. anyone else have a good webdna solution? If not, it seems we will have to run a separate CGI just for this lil task... (hint to SMSI ;-) Donovan Morten Madsen wrote: > Hi Talk List > > I have been going through the old mails on the talklist to find a > solution to detect whether a client is accessing af page via http og > https but i really cannot find any solution. > > I want to make sure that the customers have a secure connection during > checkout. In ASP it is very easy to get information about which port the > client is using on the server (Request.ServerVariables("SERVER_PORT")), > PSEUDO: if the port = 80 redirect to HTTPS://rightside - if it is 443 do > nothing. > > How do you guys make sure/force clients to use HTTPS for certain pages. > > > > Morten Dam Madsen -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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/ ------------------------------------------------------------- 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: Detecting SSL or port ( "Morten Madsen" 2005)
  2. Re: Detecting SSL or port ( John Peacock 2005)
  3. Re: Detecting SSL or port ( Donovan Brooke 2005)
  4. Detecting SSL or port ( "Morten Madsen" 2005)
I do have a very bad solution based on javascript, but I don't wish to use it, because i wish to control it entirely serverside. Futhermore there are some other solutions base on the software of the webserver but i can't really make these solutions work the way i like. An idea would be you call an ASP page that checks the port, but is it possible to get the result from the asp-page into the Webdna - i can't really see it happeing :-( Further more i played with the idea of calling the ASP script via the TCPConnect - but I cannot see this working either since you have to specify with port to use :-(( Yeah, well the problem is I really don't feel i have a 100% safe solution before Webcatalog (Webdna) is able to tell me if the connection is safe (SSL) or just which port being used for the connection. So instead of the relative unusefull [IsSecureClient], it would be great with a very usefull [IsSecureServer] or just as good [ServerPort] Morten -----Original Message----- From: Donovan Brooke [mailto:dbrooke@euca.us] Sent: 7. februar 2005 17:25 To: WebDNA Talk Subject: Re: Detecting SSL or port Hi Morten, I used to do this by port as well.. But I had to use SSI as WebDNA doesn't have SERVER_PORT. In the old versions of webcatalog I was able to process SSI before or after webdna (my choosing). The newer versions don't seem so integrated with SSI. It seems there really are only two ways of checking against this.. PORT or by the URL (looking for the "s" in HTTPS). There is no [serverport] context in webdna and [thisurl] does not show the protocol.. so... I dunno.. anyone else have a good webdna solution? If not, it seems we will have to run a separate CGI just for this lil task... (hint to SMSI ;-) Donovan Morten Madsen wrote: > Hi Talk List > > I have been going through the old mails on the talklist to find a > solution to detect whether a client is accessing af page via http og > https but i really cannot find any solution. > > I want to make sure that the customers have a secure connection during > checkout. In ASP it is very easy to get information about which port the > client is using on the server (Request.ServerVariables("SERVER_PORT")), > PSEUDO: if the port = 80 redirect to HTTPS://rightside - if it is 443 do > nothing. > > How do you guys make sure/force clients to use HTTPS for certain pages. > > > > Morten Dam Madsen -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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/ ------------------------------------------------------------- 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/ "Morten Madsen"

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:

FRAMES and CART tags problem??!? (1999) [Sum] function? (1997) Regarding PayPal (was Payments -> Bank Accounts) (2005) using showpage and showcart commands (1996) Re:Emailer and encryption (1997) Runtime version ... (2003) Show if time tags (1997) Timeout question .. (2003) Opinion: [input] should be called [output] ... (1997) setting line item numbers (1998) storebuilder problems on RedHat 6.1 with webcat 3.08 (2000) [OT] Getting a domain listening on port 443 and port 80? (2003) webmerch and serials - almost there (1997) WebCatalog for Postcards ? (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) [Sum] function? (1997) Web Catalog 2 demo (1997) Moving files from one server to another... (2001) Where is Orders.db appended? (2000) Showing unopened cart (1997)