'Default error handler: close the connection and raise IOError.'

def http_error_default(self, url, fp, errcode, errmsg, headers):

    fp.close()
    raise IOError, ('http    error', errcode, errmsg, headers)
