It no longer seems to be present, and this particular header was not the point of the test. (cherry picked from Fedora commit b8b7567aeecca104ae526e92800fa1de0fee1758)
9 lines
203 B
Python
9 lines
203 B
Python
import urllib3
|
|
|
|
http = urllib3.PoolManager()
|
|
r = http.request('GET', 'http://example.com/')
|
|
print('status = {0}'.format(r.status))
|
|
print(r.data)
|
|
if r.status != 200 or not r.data:
|
|
raise SystemExit(1)
|