From: Vasudevan C. <vco...@gm...> - 2020-02-14 12:51:01
|
All, I was entering the username and password into the respective fields and clicked the button. The password was encrypted (by HtmlUnit JS engine) and the host rejected with the message "Invalid login credentials". Whereas the login is successful from the browser. The encrypted password length is more from the browser compared to HtmlUnit generated values. Looks like the execution of JS for password encryption in HtmlUnit is having some issues. I am copying the encrypted password of HTMlUnit & actual browser. HtmlUnit Value: v="0384l01600l11696l23456l312416l425088l525600l651200l7720l8880l9912l10848l11896l12720l13832l14848l151568l16800l17720l18896l19768l201616l21848l22720l23912l24912l251584l26912l27848l28880l29800l30896l31768l321600l33800l34816l35~0" Browser Value: v="0808l0816l11824l23136l36784l413312l528160l649152l7720l81616l91600l10768l111616l12720l13832l14800l15800l16800l17720l18912l191600l20896l21880l22720l23864l241600l251600l26848l27784l281552l29832l30912l31832l32768l331632l34864l35~0688l01744l13680l24096l36912l429696l553248l6117760l71616l81760l91840l101616l11" I tried simulating all browser version options supported by HtmlUnit and it fails always. I appreciate your help or any pointers to solve this issue. Regards Vasu |