title: python parse http response (string)
body: <p>I'm using python 2.7 and I want to parse string HTTP response fields which I already extracted from a text file. What would be the easiest way? I can parse requests by using the BaseHTTPServer but couldn't manage to find something for the responses.</p>
  
  <p>The responses I have are pretty standard and in the following format</p>
  
  <pre><code>HTTP/1.1 200 OK
  Date: Thu, Jul  3 15:27:54 2014
  Content-Type: text/xml; charset="utf-8"
  Connection: close
  Content-Length: 626
  </code></pre>
  
  <p>Thanks in advance,</p>