skipperkongen/GeoNagios — Issue #8: Cache results of getCapabilities (optional)
Author: skipperkongen
Created: 2012-02-20 10:06:25+00:00
State: open

option: --cache

if this is set, the result of getCapabilities is stored on disc in a file

The name of the file containing xml for getCapabilites, is a hash of the site being tested....
the url is md5 hashed.

In python this is done with:

>>> import hashlib
>>> m = hashlib.md5()
>>> m.update('http://kort.arealinfo.dk/wms')
>>> m.hexdigest()
'33497de04e08ac157cee9d5b133483e3'