def initStats(self):
url = "<STR_LIT>"  % (self._proto, self._host, self._port, <EOL>self._statuspath)<EOL>response = util.get_url(url, self._user, self._password)<EOL>self._statusDict = {}<EOL>for line in response.splitlines():<EOL><INDENT>mobj = re.match('<STR_LIT>', line)<EOL>if mobj:<EOL><INDENT>self._statusDict[mobj.group(<NUM_LIT:1>)] = util.parse_value(mobj.group(<NUM_LIT:2>))<EOL><DEDENT><DEDENT>if self._statusDict.has_key('<STR_LIT>'):<EOL><INDENT>self._statusDict['<STR_LIT>'] = len(self._statusDict['<STR_LIT>'])<EOL><DEDENT>
Query and parse Apache Web Server Status Page.