'Compat definition since superclass does not define it.
Returns a tuple consisting of:
- server status code (e.g. \'200\' if all goes well)
- server "reason" corresponding to status code
- any RFC822 headers in the response from the server'

def getreply(self, buffering=False):

    try:
        if (not buffering):
            response = self._conn.getresponse()
        else:
            response = self._conn.getresponse(buffering)
    except BadStatusLine as e:
        self.file = self._conn.sock.makefile('rb', 0)
        self.close()
        self.headers = None
        return ((-1), e.line, None)
    self.headers = response.msg
    self.file = response.fp
    return (response.status, response.reason, response.msg)
