May-17-2017, 10:50 PM
Running a load test on a web portal (Liferay) using Locust but cannot log in. I am posting the username and password, but need the csrf token. I can inspect the page and see in the response that it is assigning a csrf token as "Liferay.authToken" but have no clue how to grab that. When posting the data to log in, it needs the token (the page calls it p_auth).
Here is a similar fix for this but it's not working for me, maybe because the token is called something different on my page: stefanoapostolico.com/2014/12/07/hande-csrf-token-in-locust-test.html
Any help would be appreciated!
Here is a similar fix for this but it's not working for me, maybe because the token is called something different on my page: stefanoapostolico.com/2014/12/07/hande-csrf-token-in-locust-test.html
Any help would be appreciated!