title: Problemas with Python3 and http.client
body: <p>I have a problem with Python3.</p>
  
  <p>I am trying to get the http status code like "200 OK"of a server reading the paths from a file and typing the url.</p>
  
  <p><strong>It works with some servers</strong> but with other ones I have the problem below:</p>
  
  <pre><code>Traceback (most recent call last):
    File "simple_program.py", line 55, in &lt;module&gt;
      main()
    File "simple_program.py", line 52, in main
      parser(url)
    File "simple_program.py", line 27, in parser
      r1 = conn.getresponse()
    File "/usr/lib/python3.3/http/client.py", line 1143, in getresponse
      response.begin()
    File "/usr/lib/python3.3/http/client.py", line 354, in begin
      version, status, reason = self._read_status()
    File "/usr/lib/python3.3/http/client.py", line 336, in _read_status
      raise BadStatusLine(line)
    http.client.BadStatusLine: &lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
  </code></pre>
  
  <p>This is the part of the code which fails.</p>
  
  <pre><code>                    conn = http.client.HTTPConnection(url)
                      conn.request("GET", path)
                      r1 = conn.getresponse()
                      conn.close()
                      print(url_path, r1.status, r1.reason)
                      print("\n")
  </code></pre>
  
  <p>Could you help me?</p>
  
  <p>Thanks!!!</p>