From: Adriano O. da S. <adr...@gm...> - 2022-12-07 17:40:35
|
Hi, Sorry, This one's return is now 404. Possibly the url id has expired. I need to get the object return page. You can use the url HtmlPage page = webClient.getPage("https://sso.acesso.gov.br"); it will redirect to https://sso.acesso.gov.br/login?client_id=contas.acesso.gov.br&authorization_id={ID} I disabled my browser's cookie to show what htmlunit displays. thank you very much [image: image.png] Em qua., 7 de dez. de 2022 às 16:36, Vasudevan Comandur <vco...@gm...> escreveu: > Hi, > Wanted to know if HTMLUnit will return page object when host response > is 204. The page object was null. > > Is it the intended behaviour? > I was getting null pointer exception when I try to get the status code > from > webResponse. > > Looking forward to you reply > > regards > Vasu > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |