With addRequestProperty you are creating request header lines - not the same as what the
servlet request contains when a form is submitted - which a program retrieves with getParameter("useid") - etc.
With a GET request, the parameters come as part of the URL (you can see this in the URL for this page). With a POST request, the parameters come in the body of the request (after the headers) as name=value pairs
Bill