PostMethod p = new PostMethod("http://xxxx.com");
// 参数
NameValuePair email = new NameValuePair("email",
"xxxxxxxxxxx@126.com");
NameValuePair password = new NameValuePair("password", "xxxxxx");
NameValuePair[] params = new NameValuePair[] { email, password };
p.setRequestBody(params);
int status = c.executeMethod(p);
System.out.println(p.getResponseBodyAsString());
------解决方案--------------------