def post(self, query):
res, response = self._do_post(query)<EOL>cookies = res.getheader('<STR_LIT>', None)<EOL>if len(response) == <NUM_LIT:0> and cookies is not None and res.status == <NUM_LIT:200>:<EOL><INDENT>logging.debug('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>_, response = self._do_post(query, [('<STR_LIT>', cookies)])<EOL><DEDENT>return response<EOL>
Wrapper around ``_do_post()`` to handle accounts that require
sending back session cookies (``self.set_cookies`` True).