https « Request « JSP-Servlet Q&A

1. how can I know if the request to the servlet was executed using http or https?

I wrote a servlet in Java and I would like to know if the request to that servlet was executed using HTTP or HTTPS. I thought i can use request.getProtocol() but it ...

2. How can we sent a https request?

3. HTTPS Request using servlet API