obspy.clients.seishub.client.Client._http_request

Client._http_request(url, method, xml_string=None, headers={})[source]

Send a HTTP request via urllib2.

Parameters:
  • url (str) Complete URL of resource
  • method (str) HTTP method of request, e.g. “PUT”
  • headers (dict) Header information for request, e.g. {‘User-Agent’: “obspyck”}
  • xml_string (str) XML for a send request (PUT/POST)