in userbeacon/vscommunicator.py [0:0]
def do_post(self, urlpath, body_content):
"""
perform a POST request, with retries. Raises on error, for details see `do_generic`
:param urlpath:
:param body_content:
:return:
"""
return self.do_generic(urlpath, lambda full_url:
requests.post(full_url, json=body_content,
auth=(settings.VIDISPINE_ADMIN_USER, settings.VIDISPINE_ADMIN_PASSWORD),
headers={"Accept":"application/json"}, verify=self.verify))