HtmlUnit to login (post form) to csrf enable website

Posted by maaz on Stack Overflow See other posts from Stack Overflow or by maaz
Published on 2010-03-27T11:15:05Z Indexed on 2010/03/27 11:23 UTC
Read the original article Hit count: 583

Filed under:
|
|
|

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 form) in csrf enable website using HTMLUnit or any other tool in Java or it is impossible?

© Stack Overflow or respective owner

Related posts about htmlunit

Related posts about csrf