Esempio n. 1
0
 def get_connection(host=host, port=port):
     return httplib.HTTPConnection(host, port)
Esempio n. 2
0
    def _make_http_request(self, host_port, timeout):

        connection = httplib.HTTPConnection(host_port, timeout=timeout)
        connection.request('GET', self._config['url'], headers=self.HEADERS)

        return connection.getresponse()