简体   繁体   中英

android web scraping behind a secure login

I've been racking my brain about this for a while, I've managed to send a post request to a https based login form using the android sdk, specifically the org.apache.http library .

All seems well in that the response i get back from the server is 200 OK.

However, I can't figure out how to then scrape the page behind the login. The apache library seems geared towards server requests/repsonses so the question is how can i get the actual html page back using the android sdk ?

Example code would be much appreciated.

Examples of using HttpClient, including the use of ResponseHandler, can be found at:

http://hc.apache.org/httpcomponents-client/examples.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM