Hi Chris,
Latest snapshot doesn't give errors with me, http://build.canoo.com/htmlunit/artifacts/
WebClient webClient = new WebClient();
webClient.setThrowExceptionOnFailingStatusCode(false);
CollectingAlertHandler alerts = new CollectingAlertHandler();
try
{
webClient.setAlertHandler(alerts);
HtmlPage page = webClient.getPage("http://www.buy.com/sr/searchresults.aspx?qu=sony&qxt=home&display=col&&resultCount=5&gsap=1");
System.out.println(page.asXml());
}
catch(Exception e) {
e.printStackTrace();
}
finally {
for (String x: alerts.getCollectedAlerts()) {
System.out.println(x);
}
}
Yours,
Ahmed
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user