开发者

HtmlUnit to login (post form) to csrf enable website

开发者 https://www.devze.com 2022-12-24 03:17 出处:网络
I am posting a form using HTMLUnit webClient by putting the username and password but it could not logging me in. When i research then found out that they have enable csrf on post request so native we

I am posting a form using HTMLUnit webClient by putting the username and password but it could not logging me in. When i research then found out that they have enable csrf on post request so native web browser is required. Is there any way to login (post f开发者_StackOverfloworm) in csrf enable website using HTMLUnit or any other tool in Java or it is impossible?


HtmlUnit should behave exactly as browsers. Could you provide more detailed comparison (headers/response) between HtmlUnit and real browsers?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号