source = 'http://www.pythonlearn.com/code/intro-short.txt'
r = requests.get(source)
print('Display actual page\n')
for line in r:
    print(line.strip())
print("""
Display all headers
""")
print(r.headers)
Python 3 Get HTTP page