title: Dealing with pagination in web pages while using jsoup
body: <p>I have been using jsoup to crawl through webpages of a particular website.
  Basically i am trying to extract all the href's that have a link of a pdf.
  I have been successful in getting all the link of a particular page . But there are 10 such pages. The web pages uses a logic of javascript _doPostBack() function to navigate to other pages. How do i get this done by jsoup.</p>
  
  <p>This is how i am trying it right now </p>
  
  <pre><code>Document document = Jsoup.connect(" some website name")
                          .data("__EVENTARGUMENT", __EVENTARGUMENT)
                          .data("__EVENTTARGET", __EVENTTARGET)
                          .data("__EVENTVALIDATION", __EVENTVALIDATION)
                          .data("__VIEWSTATEGENERATOR ", __VIEWSTATEGENERATOR)
                          .cookie("ASP.NET_SessionId", sessionId)
                          .followRedirects(true)
                          .timeout(0)
                          .userAgent(
                              "Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/2.0.0.6")
                          .post(); 
  </code></pre>
  
  <p>But i am getting a false url output.
  I have defined all the variables before sending.</p>