Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-06 Thread Léa Massiot
Hello and thank you for your answers. I would like to say that my problem is solved (even though I would like to answer the remarks you made). I can't really tell what combination of adjustments (see my previous posts) are responsible for it. I just did things with more care than when I do things

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-04 Thread Léa Massiot
Hi, Christopher Schultz wrote: If you want to switch protocols I don't think I want that... but maybe I do not understand properly what you mean... For the webapp I've been considering in that thread, I would like Tomcat to serve pages only via HTTPS. I do not want some pages to be served via

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Léa, On 11/4/14 5:46 AM, Léa Massiot wrote: Christopher Schultz wrote: If you want to switch protocols I don't think I want that... but maybe I do not understand properly what you mean... For the webapp I've been considering in that thread, I

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-04 Thread Terence M. Bandoian
On 11/4/2014 4:46 AM, Léa Massiot wrote: Hi, Terence M. Bandoian wrote: I'm not sure how you're using it but it's worth pointing out that response.sendRedirect Sends a temporary redirect response to the client... The client (browser) must then send another request to the server before any

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Léa, On 11/2/14 10:07 AM, Léa Massiot wrote: Hello Mark, Chris and Terence. Thank you for your answers. After reading them and observing a few things I realized that my problem is not exactly the one I described at first. Christopher

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-03 Thread Léa Massiot
Hi, thank you for your answer. On 2014-11-03 4:34 PM, Christopher Schultz wrote: Redirects definitely work with HTTPS. You must be doing something wrong. Perhaps a configuration mistake with a port number or something like that. My configuration in Tomcat 7.0.55 server.xml is: ( - basically

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Léa, On 11/2/14 12:34 PM, Léa Massiot wrote: Hi again. It looks like sendRedirect() is working if I pass it a HTTPS URL as an argument: - String s_prov = request.getScheme() + :// +

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-03 Thread Terence M. Bandoian
On 11/2/2014 11:34 AM, Léa Massiot wrote: Hi again. It looks like sendRedirect() is working if I pass it a HTTPS URL as an argument: - String s_prov = request.getScheme() + :// + request.getServerName() + request.getContextPath() + / +

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-02 Thread Léa Massiot
Hello Mark, Chris and Terence. Thank you for your answers. After reading them and observing a few things I realized that my problem is not exactly the one I described at first. Christopher Schultz-2 wrote The Referer is going to be the URL that was showing in the web browser when the user

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-02 Thread Léa Massiot
Léa Massiot wrote Before I tried to make the webapp work with HTTPS, I was always using calls like these: -- response.sendRedirect(example1.jsp); -- Last

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-02 Thread Léa Massiot
Hi again. It looks like sendRedirect() is working if I pass it a HTTPS URL as an argument: - String s_prov = request.getScheme() + :// + request.getServerName() + request.getContextPath() + / + example1.jsp;

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-01 Thread Terence M. Bandoian
On 10/31/2014 11:18 AM, Mark Eggers wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/31/2014 5:06 AM, Léa Massiot wrote: Hello and thank you for reading my post. I'm trying to make a webapp work with HTTPS. It was working properly with HTTP. Below is the problem I have. Inside a

Re: From HTTP to HTTPS request.getHeader(referer)

2014-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Terence, On 11/1/14 3:44 PM, Terence M. Bandoian wrote: On 10/31/2014 11:18 AM, Mark Eggers wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/31/2014 5:06 AM, Léa Massiot wrote: Hello and thank you for reading my post. I'm trying

Re: From HTTP to HTTPS request.getHeader(referer)

2014-10-31 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/31/2014 5:06 AM, Léa Massiot wrote: Hello and thank you for reading my post. I'm trying to make a webapp work with HTTPS. It was working properly with HTTP. Below is the problem I have. Inside a servlet, in its doPost() method, to check

Re: From HTTP to HTTPS request.getHeader(referer)

2014-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Léa, On 10/31/14 8:06 AM, Léa Massiot wrote: Hello and thank you for reading my post. I'm trying to make a webapp work with HTTPS. It was working properly with HTTP. Below is the problem I have. Inside a servlet, in its doPost() method, to