I'm using HttpUnit for the first time in a project and have problems passing parameters with a request. This is not possible at all.
I have tried both:
form.submit(form.getSubmitButtons()[0]);
resp = wc.getCurrentPage();
and to req.setParameter("name", "value");
The actual page is a login page with one textfield and one password field. The form is recognized ok.
I'm using Tomcat 4-1-18 if that tells you something.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm using HttpUnit for the first time in a project and have problems passing parameters with a request. This is not possible at all.
I have tried both:
form.submit(form.getSubmitButtons()[0]);
resp = wc.getCurrentPage();
and to req.setParameter("name", "value");
The actual page is a login page with one textfield and one password field. The form is recognized ok.
I'm using Tomcat 4-1-18 if that tells you something.