title: How to send POST request?
body: <p>I found this script online:</p>
  
  <pre><code>import httplib, urllib
  params = urllib.urlencode({'number': 12524, 'type': 'issue', 'action': 'show'})
  headers = {"Content-type": "application/x-www-form-urlencoded",
              "Accept": "text/plain"}
  conn = httplib.HTTPConnection("bugs.python.org")
  conn.request("POST", "", params, headers)
  response = conn.getresponse()
  print response.status, response.reason
  302 Found
  data = response.read()
  data
  'Redirecting to &lt;a href="http://bugs.python.org/issue12524"&gt;http://bugs.python.org/issue12524&lt;/a&gt;'
  conn.close()
  </code></pre>
  
  <p>But I don't understand how to use it with PHP or what everything inside the params variable is or how to use it. Can I please have a little help with trying to get this to work?</p>