From: Ahmed A. <asa...@ya...> - 2015-06-24 20:35:24
|
Hi Vasu, You can get the URLs and content of all traffic, by something like: http://htmlunit.sourceforge.net/faq.html#HowToModifyRequestOrResponse Ahmed From: Vasudevan Comandur <vco...@gm...> To: "htm...@li..." <htm...@li...> Sent: Wednesday, June 24, 2015 8:57 PM Subject: [Htmlunit-user] How do I get the last request URL that was sent out as part of JS execution Hi All, I was trying to get the last request URL that was sent out through a WebClient during the exection of JS. I slept for a minute before calling the below mentioned code: WebClient().getCurrentWindow().getEnclosedPage().getWebResponse().getWebRequest().getURL().toString() I was getting the initial request only. Regards Vasu ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |