From: Ahmed A. <asa...@ya...> - 2013-12-10 16:43:02
|
Hi, Yes, something like: In your case, you don't need to change the content, or to create t Ahmed ________________________________ From: 赵芮元 <zry...@16...> To: Ahmed Ashour <asa...@ya...>; htm...@li... Sent: Tuesday, December 10, 2013 6:25 PM Subject: Re:Re: [Htmlunit-user] Extracting Javascript 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 > > > |