|
From: Adriano O. da S. <adr...@gm...> - 2022-11-18 19:26:11
|
Hello,
I am try get page with htmlunit (all versions htmlunit, all BrowserVersion)
and the site return problem with cookie. As if it were disabled.
sample code:
WebClient webClient = new WebClient(BrowserVersion.BEST_SUPPORTED);
webClient.getCookieManager().setCookiesEnabled(true);
HtmlPage page = webClient.getPage("
https://sso.acesso.gov.br/logn?client_id=consumidor.gov.br&authorization_id=1848bfae21b
");
System.out.println(page.asNormalizedText());
show message
"Foi detectado que os cookies do seu browser podem estar
desabilitados. Por favor habilite os cookies e tente novamente."
Does it have a solution?
Thank you
|