List<NameValuePair> data = new ArrayList<NameValuePair>();
data.add(new NameValuePair("loginName","13242050893"));
data.add(new NameValuePair("loginpwd","157411"));
data.add(new NameValuePair("loginsubtyp","M"));
PostMethod httpPost = new PostMethod("http://www.mangocity.com/mbrweb/login/doLogin.action");
httpPost.setRequestBody(data.toArray(new NameValuePair[data.size()]));
httpPost.setFollowRedirects(false);
client.executeMethod(httpPost);
BufferedReader in = new BufferedReader(new InputStreamReader(httpPost.getResponseBodyAsStream(), "UTF-8"));
StringBuffer buffer = new StringBuffer();
String line;
while ((line = in.readLine()) != null) {
buffer.append(line);
}
System.out.println(buffer);