From: minersail <jkw...@gm...> - 2017-06-25 22:44:10
|
I have tried to do the typical log in with HTMLUnit by filling in inputs and clicking the submit button. However, that didn't work, even with giving the webpage 20 seconds to load. So instead, I've tried to log in using a POST WebRequest, which has worked. The cookies successfully updated and the site itself in chrome told me that I was logged in elsewhere. The page returned by the POST was not a valid html page though, so I could not navigate directly from there. When I now use the webclient to navigate through the website, it does not register me as logged in. I've tried both navigating to the website regularly with client.getPage() as well as a GET request with the updated cookies attached. How would I get the logged in state from the POST request to transfer over when navigating through the rest of the website? I have omitted code for brevity but can post any relevant code necessary. -- View this message in context: http://htmlunit.10904.n7.nabble.com/Navigate-website-after-logging-in-using-WebRequest-tp42263.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |