Urllib2 processes requests and keeps reporting BadStatusLine errors

import urllib,urllib2,cookielib

loginurl="http://192.168.1.80/login.htm"

cj = cookielib.CookieJar()
opener=urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))

headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
    "Connection": "keep-alive",
    "Host": "192.168.1.80",
    "Referer": "http://192.168.1.80/firstpage.htm",
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
}    

for key in headers: 
    opener.addheaders.append((key,headers[key]))

data = urllib.urlencode({"log_in":"00000000","submit":""})
opener.open(loginurl,data)

keep reporting: BadStatusLine: error, God, ask how to deal with ~

Apr.11,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b463-2c273.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b463-2c273.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?