0

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?

4

1 回答 1

0

HtmlUnit 应该与浏览器完全一样。您能否提供 HtmlUnit 和真实浏览器之间更详细的比较(标题/响应)?

于 2010-03-28T06:58:41.260 回答