title: How to get HTTP status message in (py)curl?
body: <p>spending some time studying pycurl and libcurl documentation, i still can't find a (simple) way, how to get HTTP status message (reason-phrase) in pycurl.</p>
  
  <p>status code is easy:</p>
  
  <pre><code>import pycurl
  import cStringIO
  
  curl = pycurl.Curl()
  buff = cStringIO.StringIO()
  curl.setopt(pycurl.URL, 'http://example.org')
  curl.setopt(pycurl.WRITEFUNCTION, buff.write)
  curl.perform()
  
  print "status code: %s" % curl.getinfo(pycurl.HTTP_CODE)
  # -&gt; 200
  
  # print "status message: %s" % ???
  # -&gt; "OK"
  </code></pre>