You should know what your ports are.  I know of no way to determine the URL
that was entered to access your server side process so you can check for
things like http or https.

Dan

> ----------
> From:         Dion Almaer[SMTP:[EMAIL PROTECTED]]
> Sent:         Monday, October 11, 1999 10:35 AM
> To:   Kirkdorffer, Daniel
> Cc:   [EMAIL PROTECTED]
> Subject:      RE: JSP Getting HTTPS or HTTP
>
>
> You mean... if it's 443 then its SSL but if it's 80 then it's not?
> Those ports are the standard... but it doesn't have to be that way. There
> is no way to *really* check?
>
> Dion
>
> --
>          \\|//
>          (o o)
> +----oOOo-(_)-oOOo--------------------------------------------------+
> |   [EMAIL PROTECTED]   | "Jesus is coming,                           |
> | www.almaer.com/dion |  everyone look busy."                       |
> +-------------------------------------------------------------------+
>
> On Mon, 11 Oct 1999, Kirkdorffer, Daniel wrote:
>
> > You should be able to simply check the SERVER_PORT environment variable.
> >
> > Dan
> >
> > > ----------
> > > From:     Dion Almaer[SMTP:[EMAIL PROTECTED]]
> > > Reply To:         Dion Almaer
> > > Sent:     Monday, October 11, 1999 9:16 AM
> > > To:       [EMAIL PROTECTED]
> > > Subject:  JSP Getting HTTPS or HTTP
> > >
> > > Hi all,
> > >
> > > How can you find out if the JSP page is running under https or http?
> > >
> > > Like: request.ServerVariables("HTTPS")
> > >
> > > Thanks,
> > >
> > > Dion
> > >
> > > --
> > >          \\|//
> > >          (o o)
> > > +----oOOo-(_)-oOOo--------------------------------------------------+
> > > |   [EMAIL PROTECTED]   | "There are three kinds of people            |
> > > | www.almaer.com/dion |  those who can count, and those who can't"  |
> > > +-------------------------------------------------------------------+
> > >
> > >
> ==========================================================================
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > FAQs on JSP can be found at:
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >
> >
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to