Android Question OkHttpUtils2 download HTML with login form

peacemaker

Expert
Licensed User
Longtime User
HI, All

Is it possible to download by OkHttpUtils2 the page that is behind the auth form with login\password ?
Seems, job.UserName and job.Password are for the server auth only.
 

peacemaker

Expert
Licensed User
Longtime User
I know that form uses POST and know the field names. Should i make PostMultipart with fields=values ?
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
So, is it no universal way to download any web-pages of any web-site, if you know only the login\pass of the auth form ?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
No
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
But, finally, to make web-page crowling, with auth, the form must be processed ?
1) find "method", URL=action
2) find username and password fields names
3) and make HTTP-request of method-kind to URL, passing login and password values in the correct field names
?

And how to get other web-pages after login ? I ask about the algorithm only.
 
Upvote 0
Top