If I have a java servlet using doGet()
such as:
public class MyServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
...
param1 = request.getParameter("param1");
...
and it gets accessed by calling https://www.mydomain.com/MyServlet?param1=hello
.
Is param1
secure since I'm using https (that is, param1
is not visible to anyone but the user accessing the link)? Or, is it visible because doGet()
places param1 in the HTML header? If the latter, what's equivalent doPost()
look like here?