title: How can I send an HTTP POST request to url with action=fetch in python?
body: <p>I want to send an HTTP POST request to url.
  The response would be a valid JSON object. </p>
  
  <p>I made this little python script for that, but unfortunately it's not working correctly.</p>
  
  <pre><code>import httplib, urllib
  
  host = 'www.google.com'
  url = 'www.google.com'
  
  
  values = urllib.urlencode(values)
  
  conn = httplib.HTTPSConnection(host)
  conn.request("POST", url)
  response = conn.getresponse()
  
  data = response.read()
  
  print 'Response: ', response.status, response.reason
  print data
  print response
  </code></pre>