From: Ahmed A. <asa...@ya...> - 2016-07-12 17:20:04
|
Hi Ziqi, Thanks for reporting, fixed in SVN. The reason was that HtmlUnit tries to load the content of <link rel="alternate" href="android-app://something> You can get latest build (once green) from [1]. Ahmed, [1] https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts From: Ziqi Zhang <ziq...@sh...> To: htm...@li... Sent: Monday, July 11, 2016 6:06 PM Subject: [Htmlunit-user] org.apache.http.client.ClientProtocolException (ver2.22) Hi I am testing the following code to download a webpage from wikipedia. and it generates a long exception as shown below. Any ideas much appreciated! Thanks Code: ------------- final WebClient webClient = new WebClient(); try { final HtmlPage page = webClient.getPage("https://en.wikipedia.org/wiki/Commedia_all%27italiana"); page.save(new File("blah/saved.html")); System.out.println(); }catch (Exception e){ e.printStackTrace(); } ---------------------- |