Java - JSoup Post aspx

时间:2014-09-09 19:10:59

标签: java android jsoup

从表格中获取信息

http://www.qiyas.org/QiyasResult/Pages/ResultsPage.aspx

我尝试了以下但没有成功......

doc = Jsoup
                    .connect(
                            "http://www.qiyas.org/QiyasResult/Pages/ResultsPage.aspx")

                    .data("ctl00$ContentPlaceHolder1$TestResultsAr$SearchBy",
                            "RadioButtonByNationalNumber")
                    .data("ctl00$ContentPlaceHolder1$TestResultsAr$TextBoxNumber",
                            "1065333658")
                    .data("ctl00$ContentPlaceHolder1$TestResultsAr$ButtonSearch",
                            "بحث")
                            .data("action", "ResultsPage.aspx")
                    // and other hidden fields which are being passed in
                    // post
                    // request.
                    .userAgent(
                            "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0")
                    .post();

0 个答案:

没有答案