----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
That will work most of the time, but it is not robust.
javax.servlet.ServletRequest.getScheme() is a much better idea.
-- Travis Low
<mailto:[EMAIL PROTECTED]>
<http://dawnstar.org/travis>
"B. Flaumenhaft" wrote:
> Another way is to look at the client port. If it's 443, it's HTTPS. If it's
> 80, it's HTTP.
>
> At 3:19 PM +0200 6/19/00, Jozef C. Chocholacek wrote:
> > OK, I got the answer from Rupert Huelsey to my mail (he has problem
> >posting to the list through their mailserver), I tested it and it
> >works, so I am posting it here as he asked me. I just want to note,
> >that there is also another interesting method in
> >javax.servlet.ServletRequest - getServerPort(); I must apologise that
> >I didn't look to super class of HttpServletRequest.
> >
> >"Jozef C. Chocholacek" wrote:
> >> 4: I need to detect, if the client is using HTTP or HTTPS. In new
> >> JSDK2.2 is in
> >
> >[EMAIL PROTECTED] wrote:
> >> take a look in javax.servlet.ServletRequest - the intresting Method
> >> is getScheme()
> >>
> >> hope, it helps,
> >>
> >> Rupert
> >>
> >> ps: sorry, icouldnt post this to the list because of our mail server
> >> - maybe you could forward this message after testing? thanx
> >> ________________________________________
> >> SinnerSchrader Aktiengesellschaft
> >>
> >> mailto:[EMAIL PROTECTED]
> >> http://www.sinnerschrader.de
> >> fon +49.(0)40.39 88 55-0
> >> fax +49.(0)40.39 88 55-55
> >> mobil +49.(0)171.246 99 10
> >> Planckstrasse 13 | 22765 Hamburg | Germany
> >
> >J.Ch.
> >+----------------------------------------------------------+
> >| Ing. Jozef Chocholacek Qbizm technologies |
> >| [EMAIL PROTECTED] Division INET-Services |
> >| +420 5 41242414 http://www.qbizm.com/ |
> >+----------------------------------------------------------+
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]