From: 赵芮元 <zry...@16...> - 2013-12-10 15:25:21
|
Hi Ahmed, Thank you for your reply, but I still not clear. Did you mean I can intercept all the content through "String content = response.getContentAsString("UTF-8");" or what else in the example? Thank you for your help! yours, Zhao Ruiyuan At 2013-12-10 22:07:38,"Ahmed Ashour" <asa...@ya...> wrote: Hi, You can intercept all the content and save .js files only. Have a look at http://htmlunit.sourceforge.net/faq.html#HowToModifyRequestOrResponse Yours, Ahmed From: 赵芮元 <zry...@16...> To: htmlunit群邮件 <htm...@li...> Sent: Tuesday, December 10, 2013 2:03 PM Subject: [Htmlunit-user] Extracting Javascript Dear all, I want to extract all javascript files(.js) from a given URL, Is there a API to achieve this task, or should I modify the source code?Thanks a lot! Yours, Zhao Ruiyuan ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |