<reponame>Kose-i/python_test<filename>BaseKnowledge/web/http_communication/urllib_module.py
#! /usr/bin/env python3

import urllib.request, urllib.error

response = urllib.request.urlopen('http://google.com')

content = response.read()
print(content)

headers = response.info()
print("\ncontent-type:", headers['content-type'])
print("date:", headers['date'])
