4 lines
155 B
Python
4 lines
155 B
Python
import urllib.request
|
|
r = urllib.request.urlopen('http://127.0.0.1:8017/', timeout=5)
|
|
print('127.0.0.1 OK:', r.status, len(r.read().decode()), 'bytes')
|