title: Scraping a POST-request AJAX web page with watir-webdriver (or any other way in Ruby)?
body: <p>I'm trying to get arrest data from the police blotter of the <a href="http://www.pbso.org/index.cfm?fa=blotter" rel="nofollow">Palm Beach County Sheriff's Office.</a></p>
  
  <p>I've limited my search to the city of West Palm Beach, going back as far as the data goes (Oct. 31, 1974).</p>
  
  <p>I'm using FireFox.</p>
  
  <p>When I get the results, I open up FireBug, check the HTML tab, and I can see the info I want from the page (i.e., arrested person's name, arrest address, charges, etc.).</p>
  
  <p>I checked the Net>>XHR>>Post tab to find the POST request parameters, but putting that into my code does nothing. It probably doesn't help that I'm a complete newbie to watir-webdriver.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>require 'watir-webdriver'
  require 'net/http'
  require 'uri'
  
  b = Watir::Browser.new
  b.goto 'http://www.pbso.org/index.cfm?fa=blotter'
  b.text_field(:name =&gt; 'start_date').set '01/01/1900'
  b.text_field(:name =&gt; 'city_name').set 'West Palm Beach'
  b.button(:name =&gt; 'process').click
  </code></pre>
  
  <p>Does anyone know if it's possible to get the response page HTML (i.e., the HTML that contains the name, address, crime, etc.)?</p>