tremor77 wrote:Because passing parameters to that page via URL isn't part of the mission test. If that is how you're trying to solve the mission then you are terribly overthinking it. Also that page is a POST processor...not a GET processor.. so passing data via URL is useless, you need to pass that data via a form post.
sorry, but I don't quite get the part whether the parameter is processed by GET or POST
I mean, if the form's method is POST, aren't the parameter fields within this form are all processed by POST;
similarly, if the form's method is GET, won't the parameter fields within the form be processed by GET?
so doesn't that mean the parameters one passes via the URL won't be all processed by solely GET but
based on the form's method its parameter field is located?
-- Mon Apr 09, 2012 11:22 am --
I found the answer, and it actually involves some not obvious difference between JAVA and PHP/HTML
as I start web programming in JAVA, and HttpServletRequest.getParameter() can just get all the parameters no matter
the parameters arrive in the query string or request body;
i.e.
using URL like ?password=abc, abc arrive as query string and can only be retrieve via $_GET['password']; and
typing abc into a password field then click submit will pass the parameter to the request body, which can only be retrieve via $_POST['password']
this problem doesn't exist in JAVA, servlet/JSP, which is why I couldn't notice why simply passing parameter via URL does not work the same as passing via the fields and submit.