java - No action attribute in html form for Jsoup login -


i'm trying login website (vimla.se) using jsoup in android. i'm aware when submitting forms in html, action attribute use post login credentials using jsoup (as explained here). however, in case, there's no action pointer , html form looks this:

<form id="loginform" name="loginform" ng-submit="login()" method="post">     <input type="email" id="username" form-filler required="required" class="text txtemail" name="username" placeholder="e-mail" autofocus="autofocus" ng-model="username" />     <br />     <input type="password" id="password" required="required" class="text txtpass" name="password" form-filler placeholder="password" autofocus="autofocus" ng-model="password" />     <br />     <button type="submit" class="btn" ng-disabled="sending">login</button> </form> 

so question is, how login such forms using jsoup?

this form using angular.js. action - attribute not specified, ng-submit https://docs.angularjs.org/api/ng/directive/ngsubmit describes on submit. logincontroller implements function gets executed. implementation hidden in https://vimla.se/scripts/all.min.js?v=1.0.0.0.

 a.login=function(){a.sending||(a.sending=!0,a.error=!1,b.post("/user/login",{username:a.username,password:a.password,referer:a.referer}) 

so url gets called /user/login , parameters transmitted username, password, referer


Comments

Popular posts from this blog

javascript - Add class to another page attribute using URL id - Jquery -

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -