title: How to structure httr POST request to return site data?
body: <p>I'm having trouble pulling data from the following website. If I go to the long_url via my browser I can see the table I want to scrape, but if I call the url from within R using httr, I'm either not getting the data returned to me, or I'm not understanding how it's being returned to me.</p>
  
  <pre><code>base_url &lt;- "http://web1.ncaa.org/stats/exec/records"
  long_url &lt;- "http://web1.ncaa.org/stats/exec/records?academicYear=2014&amp;sportCode=MFB&amp;orgId=721"
  
  library(XML)
  library(httr)
  library(rvest) # devtools::install_github("hadley/rvest")
  </code></pre>
  
  <p>The results of these POST requests look identical to me,</p>
  
  <pre><code>doc &lt;- POST(base_url, query = list(academicYear = "2014", sportCode = "MFB",
                                           orgId = "721"))
  doc &lt;- POST(long_url)
  
  class(doc)
  </code></pre>
  
  <p>Both POST requests return a status code of 200, and the class of doc is "HTMLInternalDocument" and "XMLInternalDocument" which is the normal R object that allows me to scrape the pages. But then the following rvest and XML functions come up empty, even though I know there is a table at the url.</p>
  
  <pre><code> table &lt;- html_nodes(doc, css = "td")
   table &lt;- readHTMLTable(doc)
  </code></pre>
  
  <p>Could someone help explain to me what my httr request is missing? I also tried a GET request with no luck.</p>