hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniele Dellafiore <ilde...@fastwebnet.it>
Subject after executing a PostMethod I still see the login page
Date Thu, 07 Jul 2005 09:15:34 GMT
I am trying to connect to emule web interface, and I am having problem 
with login panel.

This is the HTML code of the form:

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

and this is my java code:

HttpClient client = new HttpClient();
PostMethod method = new PostMethod(host);
method.addParameter("p", "myrealpassword");
int statusCode = client.executeMethod(method);

status code is 200 despite I use real or fake password or if I use "p" 
or "password" or "dskaop@@@" in the name parameter of addParameter

Then, the

InputStream in = method.getResponseBodyAsStream();

returns me the login page.
Where am I wrong?


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

View raw message