import ssl, sys, urllib.request

URLS = [
    'https://100.64.2.38/', 'https://100.64.2.93/', 'https://100.64.2.180/', 'https://100.64.3.75/',
    'https://100.64.3.75/?C=N;O=A', 'https://10.112.205.116/api/projects/search?ps=5',
    'https://10.112.205.15/service/rest/v1/repositories', 'https://100.64.2.84/',
    'https://100.64.2.94/', 'https://100.64.2.16/', 'https://100.64.2.204/',
]
CTX = ssl._create_unverified_context()
for u in URLS:
    try:
        req = urllib.request.Request(u, headers={'User-Agent': 'Mozilla/5.0'})
        r = urllib.request.urlopen(req, timeout=8, context=CTX)
        body = r.read(1200).decode('utf-8', 'replace')
        print('==', u, r.status, r.headers.get('Server', ''), r.headers.get('Content-Type', ''))
        print(' '.join(body.split())[:700])
    except Exception as e:
        print('==', u, 'ERR', type(e).__name__, str(e)[:120])
