obspy.clients.seishub.client._BaseRESTClient.put_resource

_BaseRESTClient.put_resource(resource_name, xml_string, headers={})[source]

PUTs a XML resource.

Parameters
  • resource_name (str) – Name of the resource.

  • headers (dict) – Header information for request, e.g. {'User-Agent': "obspyck"}

  • xml_string (str) – XML for a send request (PUT/POST)

Return type

tuple

Returns

(HTTP status code, HTTP status message)