obspy.clients.fdsn.client.download_url

download_url(url, opener, timeout=10, headers={}, debug=False, return_string=True, data=None, use_gzip=True)[source]

Returns a pair of tuples.

The first one is the returned HTTP code and the second the data as string.

Will return a tuple of Nones if the service could not be found. All encountered exceptions will get raised unless debug=True is specified.

Performs a http GET if data=None, otherwise a http POST.