title: Fast http queries in Python
body: <p>I need to send many http post requests (several thousands) and read the responses in parallel. I use httplib in python, it takes me on average 0.5 ms to send a request, and it is quite slow to read the response. I use coroutines (gevent) instead of threads to make it faster.
  I thought about the following to make it faster:</p>
  
  <ul>
  <li>write C code (I would need to find a good http library in C), and write a c-extension</li>
  <li>use Cython</li>
  </ul>
  
  <p>Which approach would yield the fastest running code? Any sharing of experience with one or the other approach would be much appreciated as well. Any other idea very welcome.</p>