Hi Stefan, What you're asking for is something out of scope for HttpClient.
I'd suggest looking at Nutch or other Java web crawlers, as they typically have some level of support for form-based authentication. -- Ken On Jan 30, 2012, at 1:49pm, Stefan at WPF 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 >> >> >> >> >> -------------------------- Ken Krugler http://www.scaleunlimited.com custom big data solutions & training Hadoop, Cascading, Mahout & Solr
