'Connects to host and sends the request.'

def putrequest(self, method, uri):

    protocol = unicode((self.protocol + '://'))
    url = ((protocol + self.host) + unicode(uri))
    self._httprequest.set_timeout(self.timeout)
    self._httprequest.open(unicode(method), url)
    if (self.cert_file is not None):
        self._httprequest.set_client_certificate(unicode(self.cert_file))
