From: Ronald B. <rb...@rb...> - 2017-06-26 15:56:35
|
Please provide a complete sample (code and maybe account data) (private mail). We will try to reproduce. RBRi On Sun, 25 Jun 2017 15:44:06 -0700 (MST) minersail wrote: > >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. > >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |