import requests r=requests.get("http://127.0.0.1:81") print(r.status_code) print(f"r.encoding is:{r.encoding}") print("r.apparent_encoding is:"+ r.apparent_encoding) print(type(r)) print(r.headers) print(r.content) print(r.text)