From: Vasudevan C. <vco...@gm...> - 2017-05-02 19:54:30
|
Hi Ahmed, The call (getContent ()) which I am making to read the TextPage instance is correct I suppose. Regards Vasu On 3 May 2017 at 00:59, Ahmed Ashour <asa...@ya...> wrote: > Hi Vasu, > > Please use latest version, if not latest build. > > And post your complete code. > > Ahmed > > > ------------------------------ > *From:* Vasudevan Comandur <vco...@gm...> > *To:* "htm...@li..." <htmlunit-user@lists. > sourceforge.net> > *Sent:* Tuesday, May 2, 2017 9:13 PM > *Subject:* [Htmlunit-user] Clarification Requried > > Hi, > > I am using HTMLUnit 2.23. I received a response from the site which had > page object mapped to instance of TextPage. I tried to get the content > using > getContent() method but I was not getting the data. The response code > was 200 > and the content-type was text/css. > > Am I missing something?. > > The site I am scrapping is http://adh.sagepub.com > <http://localhost:8080/jlf/search/generalredirect?rurl=http://adh.sagepub.com> > > The CSS data which I was trying to read is > http://journals.sagepub.com/pb/css/t1493676764000- > v1493676764000/head_1_6_7.css > > Appreciate your help in advance. > > Regards > Vasu > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |