'Initialize the instance with the host, the request URL, and the method
("GET" or "POST")'

def __init__(self, host, url, method='GET'):

    logging.Handler.__init__(self)
    method = method.upper()
    if (method not in ('GET', 'POST')):
        raise ValueError('method    must    be    GET    or    POST')
    self.host = host
    self.url = url
    self.method = method
