Files
SnarfCode/scripts/test_homepage_http.py

12 lines
270 B
Python

import requests
import urllib3
urllib3.disable_warnings()
try:
resp = requests.get('https://homepage.snarfnet.net', verify=False, timeout=10)
print("Status:", resp.status_code)
print("Length:", len(resp.text))
except Exception as e:
print("Error:", e)