title: httplib vs urllib2 and cookies
body: <p>I like <code>urllib2</code> for automated routine operations, like cookie handling (with <code>cookielib.CookieJar</code>) or redirects processing. But i also like <code>httplib</code> for the low-level control that programmer have. For example, with <code>httplib</code> i can control for the order of HTTP headers but with <code>urllib2</code> i cannot. Also, with <code>httplib</code> i can easily set <code>Content-Type</code> header to whatever i need and send, but not with <code>urllib2</code> - it takes too much control over headers for itself and may rewrite my headers by its internal logic.</p>
  
  <p>I would stay with <code>httplib</code>, but cookies processing with <code>httplib</code> is not very easy task. I can't connect it to <code>cookielib</code> and cookies parsing and processing is not so simple task to be done in 20 minutes with developing my own cookie-handling class.</p>
  
  <p>Is there any cookies-processing solution standard for <code>httplib</code>?</p>
  
  <p>Is there a way to control over order of headers to be sent with <code>urllib2</code> and turn off its intellect that may add new headers?</p>