def _login_request(self, url_login):
expiration_time = self._exp_time<EOL>payload = {'<STR_LIT>': expiration_time}<EOL>res = requests.post(url_login,<EOL>data=jsonutils.dumps(payload),<EOL>headers=self._req_headers,<EOL>auth=(self._user, self._pwd),<EOL>timeout=self.timeout_resp, verify=False)<EOL>session_id = '<STR_LIT>'<EOL>if res and res.status_code in self._resp_ok:<EOL><INDENT>session_id = res.json().get('<STR_LIT>')<EOL><DEDENT>self._req_headers.update({'<STR_LIT>': session_id})<EOL>
Internal function to send login request.