def get_response_object(url, method='GET', headers=None):
    parsed_url = urlparse.urlparse(url)
    parsed_qs = parse_qs(parsed_url.query)
    secure = parsed_url.scheme == 'https'

    headers = headers or {}
    method = method.upper()

    con = Connection(secure=secure, host=parsed_url.netloc)
    response = con.request(action=parsed_url.path, params=parsed_qs,
                           headers=headers, method=method)
    return response
Utility function which uses libcloud's connection class to issue an HTTP
dataset/ETHPy150Open apache/libcloud/libcloud/utils/connection.py/get_response_object