title: Mechanize open function giving BadStatusLine: ' ' error
body: <p>I wrote this script to download the lyrics for my songs and store them in a text file :</p>
  
  <pre><code>&gt;&gt;&gt; lis = os.listdir('D:\Phone\Sounds')
  &gt;&gt;&gt; for i in lis:
      print i
  
      br.open('http://www.azlyrics.com/') # THE PROBLEM
  
      br.select_form(nr=0)
      track = eyed3.load(i).tag
      if(track.artist != None):
          ft = track.artist.find('ft.')
          if(ft != -1):
              br['q'] = track.title + ' ' + track.artist[:ft]
          else:
              br['q'] = track.title + ' ' + track.artist
      else:
          br['q'] = track.title
      br.submit()
      s = BeautifulSoup(br.response().read())
      a = s.find('div',{'class':'sen'})
      if(a != None):
          s = BeautifulSoup(urllib.urlopen(a.find('a')['href']))
          file = open(i.replace('.mp3','.txt'),'w')
          file.write(str(s.find('div',{'style':'margin-left:10px;margin-right:10px;'})).replace('&lt;br /&gt;','\n'))
          file.close()
      else:
          print 'Lyrics not found'
  </code></pre>
  
  <p>This seems to work for a while, i downloaded the lyrics for some songs and suddenly it raises a BadStatusLine error</p>
  
  <pre><code>Heartbreaker.mp3
  &lt;response_seek_wrapper at 0x4af6f08L whose wrapped object = &lt;closeable_response at 0x4cb9288L whose fp = &lt;socket._fileobject object at 0x00000000047A2480&gt;&gt;&gt;
  &lt;response_seek_wrapper at 0x4b1b888L whose wrapped object = &lt;closeable_response at 0x4cc0048L whose fp = &lt;socket._fileobject object at 0x00000000047A2570&gt;&gt;&gt;
  Heartless (The Fray Cover).mp3
  &lt;response_seek_wrapper at 0x4b22d08L whose wrapped object = &lt;closeable_response at 0x4b15988L whose fp = &lt;socket._fileobject object at 0x00000000047B2750&gt;&gt;&gt;
  &lt;response_seek_wrapper at 0x4cb9388L whose wrapped object = &lt;closeable_response at 0x4b1b448L whose fp = &lt;socket._fileobject object at 0x000000000362AED0&gt;&gt;&gt;
  Lyrics not found
  Heartless.mp3
  &lt;response_seek_wrapper at 0x4cc0288L whose wrapped object = &lt;closeable_response at 0x4b01108L whose fp = &lt;socket._fileobject object at 0x000000000362AE58&gt;&gt;&gt;
  &lt;response_seek_wrapper at 0x4b15808L whose wrapped object = &lt;closeable_response at 0x47a4508L whose fp = &lt;socket._fileobject object at 0x000000000362A6D8&gt;&gt;&gt;
  Here Without You.mp3
  &lt;response_seek_wrapper at 0x4b1b3c8L whose wrapped object = &lt;closeable_response at 0x4916508L whose fp = &lt;socket._fileobject object at 0x000000000362A480&gt;&gt;&gt;
  &lt;response_seek_wrapper at 0x47a4fc8L whose wrapped object = &lt;closeable_response at 0x37830c8L whose fp = &lt;socket._fileobject object at 0x000000000362A0C0&gt;&gt;&gt;
  Hero.mp3
  &lt;response_seek_wrapper at 0x4930408L whose wrapped object = &lt;closeable_response at 0x4cced48L whose fp = &lt;socket._fileobject object at 0x00000000047A2228&gt;&gt;&gt;
  &lt;response_seek_wrapper at 0x453ca48L whose wrapped object = &lt;closeable_response at 0x4b23f88L whose fp = &lt;socket._fileobject object at 0x00000000047A2048&gt;&gt;&gt;
  Hey Jude.mp3
  &lt;response_seek_wrapper at 0x3783808L whose wrapped object = &lt;closeable_response at 0x4cd71c8L whose fp = &lt;socket._fileobject object at 0x00000000047A2A20&gt;&gt;&gt;
  &lt;response_seek_wrapper at 0x4ccee48L whose wrapped object = &lt;closeable_response at 0x4cd7c08L whose fp = &lt;socket._fileobject object at 0x00000000047A2B10&gt;&gt;&gt;
  Hey, Soul Sister.mp3
  
  Traceback (most recent call last):
    File "&lt;pyshell#23&gt;", line 3, in &lt;module&gt;
      br.open('http://www.azlyrics.com/')
    File "build\bdist.win-amd64\egg\mechanize\_mechanize.py", line 203, in open
      return self._mech_open(url, data, timeout=timeout)
    File "build\bdist.win-amd64\egg\mechanize\_mechanize.py", line 230, in _mech_open
      response = UserAgentBase.open(self, request, data)
    File "build\bdist.win-amd64\egg\mechanize\_opener.py", line 193, in open
      response = urlopen(self, req, data)
    File "build\bdist.win-amd64\egg\mechanize\_urllib2_fork.py", line 344, in _open
      '_open', req)
    File "build\bdist.win-amd64\egg\mechanize\_urllib2_fork.py", line 332, in _call_chain
      result = func(*args)
    File "build\bdist.win-amd64\egg\mechanize\_urllib2_fork.py", line 1142, in http_open
      return self.do_open(httplib.HTTPConnection, req)
    File "build\bdist.win-amd64\egg\mechanize\_urllib2_fork.py", line 1116, in do_open
      r = h.getresponse()
    File "D:\Programming\Python\lib\httplib.py", line 1027, in getresponse
      response.begin()
    File "D:\Programming\Python\lib\httplib.py", line 407, in begin
      version, status, reason = self._read_status()
    File "D:\Programming\Python\lib\httplib.py", line 371, in _read_status
      raise BadStatusLine(line)
  BadStatusLine: ''
  </code></pre>
  
  <p>So, why does the br.open function suddenly stop working ?
  Thanks in advance .</p>