Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get https url ?

 
vijay Panner
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I used request.getRequestURL() in servlet, it returns only http url alone. but i want to get https url also , how to get it by using servlet? please help me.
 
Vishal Trivedi
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


I am not sure sure but it has to be done from your configuration xml.
 
Piyush Joshi
Ranch Hand
Posts: 207
Eclipse IDE Firefox Browser jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think for that you will also have to get a SSL Certificate.
I also wanted to know in detail how https works.
Any experienced ranchers please guide.

Thanks in advance.
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is how to setup SSL for Tomcat.

http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html

Other appservers has other ways to do it, but all have that in common that you need to generate a certificate (suitable for dev) or buy one from a CA (suitable for production).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic