title: Making a POST call instead of GET using urllib2
body: <p>There's a lot of stuff out there on urllib2 and POST calls, but I'm stuck on a problem.</p>
  
  <p>I'm trying to do a simple POST call to a service:</p>
  
  <pre><code>url = 'http://myserver/post_service'
  data = urllib.urlencode({'name' : 'joe',
                           'age'  : '10'})
  content = urllib2.urlopen(url=url, data=data).read()
  print content
  </code></pre>
  
  <p>I can see the server logs and it says that I'm doing GET calls, when I'm sending the data 
  argument to urlopen.</p>
  
  <p>The library is raising an 404 error (not found), which is correct for a GET call, POST calls are processed well (I'm also trying with a POST within a HTML form).</p>