chenxinjie005 2018-09-06 05:55 采纳率: 100%
浏览 924
已采纳

httpost获取的历史订单的内容,只能获取前15条

printInfo("开始截取[已买到的宝贝]页面数据。。。");
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 nvps2 = new ArrayList();
nvps2.add(new BasicNameValuePair("pageNum", "1"));
nvps2.add(new BasicNameValuePair("pageSize", "15"));
nvps2.add(new BasicNameValuePair("prePageNo", "0"));
// nvps2.add(new BasicNameValuePair("queryOrder", "desc"));
try {
httpost2.setEntity(new UrlEncodedFormEntity(nvps2));
httpost2.setHeader("cookie", tmpcookies);
httpost2.setHeader("Referer", "http://trade.taobao.com/trade/itemlist/list_bought_items.htm");

            //httpost2.addHeader(HTTP.CONTENT_TYPE, "application/x-www-form-urlencoded");
            response = httpclient.execute(httpost2);
            System.out.println(EntityUtils.toString(response.getEntity()));
        } catch (Exception e) {
            printError("登录失败");
            e.printStackTrace();

        } finally {
            httpost2.abort();
        }
        printInfo("完成截取[已买到的宝贝]页面数据");
        return "";

获取个人淘宝历史订单,只能获取到前15条

  • 写回答

1条回答

报告相同问题?

悬赏问题

  • ¥15 我想在一个软件里添加一个优惠弹窗,应该怎么写代码
  • ¥15 fluent的在模拟压强时使用希望得到一些建议
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 Web.config连不上数据库
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流