I wan't to test my django web app with locust.io. In a form I have a problem with CSRF token. I do the following:
class WebsiteTasks(TaskSet):
def on_start(self):
print("On start")
@task
def post_answer(self):
self.client.get("/polls/2/vote")
self.client.post("/polls/2/vote/", {"choice": "8"})
Why do I get a 403
error? That the post is forbidden, the locust documentation says that the client objects keeps the session alive..