import requests


def requests_head(url):
    """Get header data from url
    """
    try:
        response = requests.head(url, allow_redirects=True).headers
    except requests.exceptions.ConnectionError:
        response = dict()
    return response