def create_case_task(self, case_id, case_task):
req = self.url + "<STR_LIT>".format(case_id)<EOL>data = case_task.jsonify()<EOL>try:<EOL><INDENT>return requests.post(req, headers={'<STR_LIT:Content-Type>': '<STR_LIT:application/json>'}, data=data, proxies=self.proxies, auth=self.auth, verify=self.cert)<EOL><DEDENT>except requests.exceptions.RequestException as e:<EOL><INDENT>raise CaseTaskException("<STR_LIT>".format(e))<EOL><DEDENT>
:param case_id: Case identifier
:param case_task: TheHive task
:type case_task: CaseTask defined in models.py
:return: TheHive task
:rtype: json