From: Michael M. <mic...@su...> - 2018-04-12 06:47:22
|
Nevermind! I was able to keep going by adding: webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); webClient.getOptions().setThrowExceptionOnScriptError(false); Sorry for the bandwidth consumed! Michael From: Michael Moser <mic...@su...> Sent: Wednesday, April 11, 2018 11:24 PM To: htm...@li... Subject: [Htmlunit-user] HTMLUnit crashes loading a magazines homepage Hi - I was experimenting with HTMLUnit. I would like to write myself a small utility that always downloads me the newest editions of a magazine that I have subscribed to. However, HTMLUnit always fails (i.e. throws an exception) when simply loading the landing page of the magazine's shop site, i.e. already in the second statement of: WebClient webClient = new WebClient(); HtmlPage page1 = webClient.getPage(" <https://shop.heise.de/customer/account> https://shop.heise.de/customer/account"); Is there anything I can do to prevent that crash and keep going? Regards, Michael |