title: Google Geocoding API request_denied
body: <p>I am trying to geocode a batch of around 400 addresses using the Google Geocoding API through my rails app. </p>
  
  <p>In one of my controllers I have these lines</p>
  
  <pre><code>require "net/http"
  require "uri"
  uri = URI.parse("http://maps.googleapis.com/maps/api/geocode/json?")
  response = Net::HTTP.post_form(uri, {"address" =&gt; '5032-forbes-ave', 'sensor' =&gt; 'false'})
  </code></pre>
  
  <p>But I always get back ""status": "REQUEST_DENIED" from that. </p>
  
  <p>Does anyone know why I am getting this, or if there is a way I can see exactly the HTTP request that is being sent so I can try to debug it?</p>
  
  <p>Update: This is the request that I am trying to make, if I do this from my browser I get a normal response from the api: <a href="http://maps.googleapis.com/maps/api/geocode/json?address=5032-forbes-ave&amp;sensor=false" rel="nofollow">http://maps.googleapis.com/maps/api/geocode/json?address=5032-forbes-ave&amp;sensor=false</a></p>