import requests


def http_req(host, get, port):
    """Get JSON using `requests`

    Parameters
    ----------
    host : str
        host name (IP address)

    get : str
        the resource name

    port : int
        port number

    Returns
    -------
    r : requests.models.Response
        a Response object
    """
    url = "http://"+host+":"+str(port)+get
    r = requests.get(url, headers={'Accept': 'application/json'})
    print(r.text)
    return r