From: Ronald B. <rb...@rb...> - 2020-10-21 17:48:33
|
Please open an issue on github. Am 21. Oktober 2020 11:43:20 MESZ schrieb Tommaso Morello <tom...@gm...>: >Hi, >I have an application that scrapes an external website not in my >control ( >https://www.antonioli.eu/en/JP). Everything went good for months. The >website sometimes generates errors in some pages: "too much redirects", >tried to follow the suggestions found in this newsletter but not always >work. >The problem is that, after the migration to v2.44 (from v2.40) I cannot >even access to the main page, I got always the same error message: >"too >much redirects" > >Here's is how I create the webclient: > > webClient.getCookieManager().setCookiesEnabled(true); > webClient.getOptions().setJavaScriptEnabled(true); > webClient.getOptions().setTimeout(60000); > webClient.getOptions().setCssEnabled(true); > webClient.getOptions().setThrowExceptionOnScriptError(false); > webClient.getOptions().setPrintContentOnFailingStatusCode(false); > webClient.setCssErrorHandler(new SilentCssErrorHandler()); > webClient.getOptions().setPrintContentOnFailingStatusCode(false); > webClient.getOptions().setPopupBlockerEnabled(true); > webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); > webClient.getCache().setMaxSize(0); > webClient.getOptions().setRedirectEnabled(false); > >any idea how to fix this? >Thank you. >Regards. -- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet. |