I am looking for a simple REST API that will provide the status of the various web application that are deployed in a Tomcat container.
The information I'm looking for is easily obtained by pointing your browser at:
http://localhost:8080/manager/html
This shows the web applications that are loaded, and whether each web app is running or stopped.
I would like to access this same information using "curl" from the command line. It is not a problem to hard-code the Tomcat username/password credentials in the curl command-line, as this is a secure server where no one has an active account. Is there a REST API that would allow me to do this easily?
Thank you.
question from:
https://stackoverflow.com/questions/66048304/accessing-tomcat-status-from-the-command-line 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…