I've been asked to write a servlet to monitor web services, and I am new to servlets.
Here's my question:

How can I test the HTML output of a URL request?

For example, when visiting the URL to a web service, it returns a simple HTML page that reads "And now...some services"

I need to write a servlet on an application server that runs frequently to make sure that the URL has this message.