----------------------------------------------------------------
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!!!
----------------------------------------------------------------


Fair enough. You're right, forcing port 443 is certainly less flexible.


>Here's one possibility.  I worked on a project where I was running
>2 virtual servers, each running a different "flavor" of SSL.  One server
>was running -- for want of a better term -- "standard" SSL understandable
>by browsers and that used RSA algorithms, while the other server was running
>SSL without any RSA stuff that was understandable by a specialized client.
>The servers were running on ports 443 and 8443, respectively.  However, we
>used a firewall that port- and name-mapped this server to 443 on 2 separate
>domain names.  Anyway, the only port the 2nd server was aware of was 8443.
>
>I don't think many folks need to do this sort of thing, but nonetheless,
>this
>is a case where getServerPort() == 443 wouldn't give the right answer.
>
>- Fernando
>
>
>> Thanks,
>> Ben Flaumenhaft.
>>
>> >----------------------------------------------------------------
>> >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]
>>
>>
>>
>> --
>> --------------------------------------------------------------
>> 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]
>>
>>
>
>
>
>--
>--------------------------------------------------------------
>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]



--
--------------------------------------------------------------
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]

Reply via email to