import requests


def http_get(ip, port, path, use_ssl=True, headers = None, verify=False,
             cert=None, auth=None):
    """Helper function that perform a HTTP GET request
    Returns a tuple (Code, Headers, Body)
    """
    protocol = 'https' if use_ssl else 'http'
    response = requests.get('{0}://{1}:{2}{3}'.format(protocol, ip, port, path),
                            verify=verify, headers=headers, timeout=10,
                            cert=cert, auth=auth)
    return response.status_code, response.headers, response.text