I use jsoup (http://jsoup.org/) to parse and extract values. Check out the info about selector syntax in the jsoup cookbook, it's quite easy to use.
Daniel On Mon, Jan 30, 2012 at 22:49, Stefan at WPF <[email protected]>wrote: > Thank you Ken, I have read the mentioned link, but that doesn't help me ): > I need to login to a website, which normally isn't a problem, but on the > login page there's a hidden field with a specific value that needs to be > send during the login (in addition to username and password). To send the > value of this hidden field during the login process, I need to get it's > value first - is that possible using httpclient? Normally I would say no as > it is no header field and something that needs to be parsed (not a task of > httpclient), but as httpclient can send forms, I am wondering if it maybe > is possible and I yet just didn't see how to do that? > > 2012/1/30 Ken Krugler <[email protected]> > > > Assuming you've already read > > http://hc.apache.org/httpcomponents-client-ga/primer.html, could you > > provide more details of what exactly you're trying to do with HttpClient? > > > > -- Ken > > > > On Jan 30, 2012, at 12:56pm, Stefan at WPF wrote: > > > > > Hello, > > > > > > using Apache HTTPClient, is it possible to get the value of a form > field > > of > > > a website? I guess that's already considered parsing and therefore not > > part > > > of the httpclient? I am just a little bit irritated as it's possible to > > set > > > form values when using http post. Thanks for you help :-) > > > > > > Best regards > > > Stefan > > > > -------------------------- > > Ken Krugler > > http://www.scaleunlimited.com > > custom big data solutions & training > > Hadoop, Cascading, Mahout & Solr > > > > > > > > > > >
