In a python 2.x script, I am looking for functionality to check if a https page returns particular content (will likely need to parse the page content to discover this). The page has a htpasswd prompt as well, which needs to be auth'd with a username and password to be able to see the content. So I suppose I am looking for a module or other functionality that provides the ability for me to hardcode a username and password so it can fetch the page and I can manipulate the output (aka check if the equivalent of keywords representing a 404 page are present).
I was having a look at http://docs.python.org/2/library/httplib.html but it doesn't seem to do what I am looking for.