def __init__(self, anApp, aRequest, aResponse):
        """Create an interface using the ASP top-level objects from a Request."""
        
        # Set response hook.
        self.response = aResponse
        
        # Set uri data from Request object.
        if aRequest.ServerVariables("HTTPS") == "ON":
            self.protocol = 'https'
        self.port = str(aRequest.ServerVariables("SERVER_PORT"))
        self.hostname = str(aRequest.ServerVariables("SERVER_NAME"))
        tName = str(aRequest.ServerVariables("SCRIPT_NAME"))
        atoms = tName.split("/")
        self.script = atoms.pop()
        self.path = "/".join(atoms)
        
        # Store logged-on username
        self.user = str(aRequest.ServerVariables("LOGON_USER"))
        
        # Retrieve the submitted CGI parameters.
        if str(aRequest.ServerVariables("REQUEST_METHOD")) == 'POST':
            self.set_params(aRequest.Form())
        else:
            self.set_params(aRequest.QueryString())
Create an interface using the ASP top-level objects from a Request.
recipes/Python/225299_Use_IISASP_or_Apachemodpythsame/recipe-225299.py