#!/usr/bin/python3

"""
    script that fetches https://alx-intranet.hbtn.io/status
"""

import urllib.request

with urllib.request.urlopen("https://alx-intranet.hbtn.io/status") as response:
    data = response.read()
    decoded = str(data.decode("utf-8"))

    t = type(data)

    p1 = "Body response:\n\t- type:"
    p2 = "- content:"
    p3 = "- utf8 content:"
    print("{0} {1}\n\t{2} {3}\n\t{4} {5}".format(p1, t, p2, data, p3, decoded))
