Android Question OkHttpUtils2 download HTML with login form

peacemaker

Well-Known Member
Licensed 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

Well-Known Member
Licensed User
I know that form uses POST and know the field names. Should i make PostMultipart with fields=values ?
 

peacemaker

Well-Known Member
Licensed 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 ?
 

peacemaker

Well-Known Member
Licensed 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.
 
Top