# PROGRAM Content-Type-Check from urllib.request import urlopen #### MODULE Content-Type-Check: #### def Content_Type_Check(URL_input): response = urlopen(URL_input) Check_Content = response.getheader('Content-Type') print(Check_Content) # END Content-Type_Check. ######## MAIN PROGRAM ######## Content_Type_Check("http://www.damiantgordon.com/nt.pdf") print(" ") Content_Type_Check("http://www.damiantgordon.com/") print(" ") Content_Type_Check("https://docs.python.org/") print(" ") Content_Type_Check("http://www.tudublin.ie/") print(" ") Content_Type_Check("http://www.independent.com/") print(" ") ##############################