def __init__(self, host=None, port=None, user=None, password=None, <EOL>autoInit=True):
self._conn = None<EOL>if host is not None:<EOL><INDENT>self._host = host<EOL><DEDENT>else:<EOL><INDENT>self._host = '<STR_LIT:127.0.0.1>'<EOL><DEDENT>if port is not None:<EOL><INDENT>self._port = port<EOL><DEDENT>else:<EOL><INDENT>self._port = defaultSquidPort<EOL><DEDENT>self._httpHeaders = {'<STR_LIT>': '<STR_LIT>',}<EOL>if user is not None and password is not None:<EOL><INDENT>authstr = "<STR_LIT>" % (urllib.quote(user), urllib.quote(password))<EOL>self._httpHeaders['<STR_LIT>'] = "<STR_LIT>" % authstr<EOL>self._httpHeaders['<STR_LIT>'] = "<STR_LIT>" % authstr<EOL><DEDENT>if autoInit:<EOL><INDENT>self._connect()<EOL><DEDENT>
Initialize Squid Proxy Manager access.

        @param host:     Squid Proxy Host. (Default: 127.0.0.1)
        @param port:     Squid Proxy Port. (Default: 3128)
        @param user:     Squid Proxy Manager User.
        @param password: Squid Proxy Manager Password.
        @param autoInit: If True connect to Apache Tomcat Server on instantiation.