async def _post_login_page(self, token):
data = {"<STR_LIT>": self.username,<EOL>"<STR_LIT>": self.password,<EOL>"<STR_LIT>": token}<EOL>try:<EOL><INDENT>async with async_timeout.timeout(<NUM_LIT:10>):<EOL><INDENT>raw_res = await self._session.post(LOGIN_URL,<EOL>data=data,<EOL>allow_redirects=False,<EOL>timeout=self._timeout)<EOL><DEDENT><DEDENT>except OSError:<EOL><INDENT>raise PyEboxError("<STR_LIT>")<EOL><DEDENT>if raw_res.status != <NUM_LIT>:<EOL><INDENT>raise PyEboxError("<STR_LIT>")<EOL><DEDENT>re_results = re.search(r"<STR_LIT>", raw_res.headers.get('<STR_LIT>'))<EOL>if re_results:<EOL><INDENT>await self._handle_login_error(raw_res.headers.get('<STR_LIT>'))<EOL><DEDENT>return True<EOL>
Login to EBox website.