request

dqsegdb2.http.request(url, **urlopen_kw)

Request data from a URL

If the URL uses HTTPS and the context keyword is not given, X509 credentials will be automatically loaded using gwdatafind.utils.find_credential().

Parameters:
url : str

the remote URL to request (HTTP or HTTPS)

**urlopen_kw

other keywords are passed to urllib.request.urlopen()

Returns:
reponse : http.client.HTTPResponse

the reponse from the URL