我想用我的远程服务器实现对蝗虫的负载测试,但我不想禁用 csrf 功能,我怎样才能获得 csrf_token 或通过它
class UserBehavior(TaskSet):
@task(1)
def login(self):
self.client.get("/securities/login")
token = "how to get it"
self.client.post("/securities/login",{"username":"test",
"password":"123",
"csrf_token":token})