HttpPost httpost2 = new HttpPost("http://buyertrade.taobao.com/trade/itemlist/asyncBought.htm?action=itemlist/QueryAction&event_submit_do_query=1&_input_charset=utf8");
// All the parameters post to the web site
List<NameValuePair> nvps2 = new ArrayList<NameValuePair>();
nvps2.add(new BasicNameValuePair("pageNum", "1"));
nvps2.add(new BasicNameValuePair("pageSize", "20"));
try {
httpost2.setEntity(new UrlEncodedFormEntity(nvps2, HTTP.UTF_8));
response = httpclient.execute(httpost2);
System.out.println(EntityUtils.toString(response.getEntity()));
} catch (Exception e) {
printError("登录失败");
e.printStackTrace();
} finally {
httpost2.abort();
}
已经登陆成功了,现在要获取历史订单,可是为什么这个返回的是空的。