I am running an Apache2 web-server. I would like to be able to access the kind of information made available by the mod_info and mod_status modules via the command-line, either through a scripting language such as Python or through a command-line utility. Is this a possibility?
For example, I can use
curl to inspect header information:
curl --head 'http://127.0.0.1/server-info'
This gives me a convenient way to verify that my header configuration settings have taken effect and are working properly. It would be nice if there were a similar way (syntactically speaking) to verify other settings.
I've considered parsing the output of the 'mod_info', but I'm hoping that there is a preexisting (and cleaner) solution.