hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: after executing a PostMethod I still see the login page
Date Thu, 07 Jul 2005 09:37:43 GMT
Hello Daniele.

> <form action="" method="POST" name="login">
> <font face=Tahoma style="font-size:10pt;">&nbsp;<br>Enter your password

> here<br><br>
> <input type="password" name=p maxlength=12 size=37 style="border-width: 
> 1px; border-color: black; border-style:none;" value="">
> <input type="hidden" name=w value="password">
> <br><br><input type=submit value="Login Now"></font>
> </form>
> 
> and this is my java code:
> 
> HttpClient client = new HttpClient();
> PostMethod method = new PostMethod(host);
> method.addParameter("p", "myrealpassword");
> int statusCode = client.executeMethod(method);
> 

You have to add parameter "w" with value "password".
Hidden input fields are still input fields.

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message