Python urllib

from urllib import request
import json

# GET request
url = "https://httpbin.org/get"
with request.urlopen(url) as r:
    assert r.status == 200
    text = r.read().decode("utf-8")
    data = json.loads(text)
    assert data["url"] == url