# -*- coding: utf-8 -*-
import io,sys,urllib.request,ssl
sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding="utf-8")
ctx=ssl.create_default_context(); ctx.check_hostname=False; ctx.verify_mode=ssl.CERT_NONE
urls=[
 "https://web.cs.toronto.edu/graduate/programs",
 "https://web.cs.toronto.edu/graduate/admissions",
 "https://web.cs.toronto.edu/graduate/program-msc",
 "https://www.cs.toronto.edu/graduate/",
]
for u in urls:
    try:
        req=urllib.request.Request(u,headers={"User-Agent":"Mozilla/5.0"})
        raw=urllib.request.urlopen(req,context=ctx,timeout=20).read().decode("utf-8","ignore")
        print("OK",len(raw),u)
    except Exception as e:
        print("ERR",type(e).__name__,str(e)[:70],u)
