What do you mean by "convert"? An HTTP request is an HTTP request; nothing will make it into an HTTPS request. The response to the HTTP request could be a redirect to an equivalent HTTPS URL, though. Or you could instruct the web app to do that automatically.
Prabhat Ranjan wrote:How can we convert http request to Https in servlet or jsp ?
Prabhat, if your intention is "How to enable SSL", then for tomcat it is done by enabling the port in server.xml , if I'm not wrong. But may be container specific which you need to go through documentation.
Regards
KumarRaja
Prabhat Ranjan
Ranch Hand
Joined: Oct 04, 2006
Posts: 361
posted
0
yes you are correct. I mean to 'how to enable SSL' .
Prabhat Ranjan wrote:yes you are correct. I mean to 'how to enable SSL' .
as we know https is secure connection.
Thanks
As I mentioned, please refer the container documentation. For Tomcat, it is uncommenting the section around HTTPS in server.xml and I think you need to restart the container after the change.