php - how to send post request for forms without action? -
so i'm trying login spotify code in python problem can't find url should post request because there isn't action attribute in form. login url
here the form code:
<form _lpchecked="1" class="ng-valid-sp-disallow-chars ng-dirty ng-valid-parse ng-valid ng-valid-required" name="$parent.accounts" ng-submit="submit(form)" novalidate=""> <!-- ngif: status && status !== 200 --> <div class="row" ng-class="{'has-error': (accounts.username.$dirty && accounts.username.$invalid)}"> <div class="col-xs-12"> <label class="control-label sr-only ng-binding" for="login-username"> username or email address </label> <input autocapitalize="off" autocomplete="off" autocorrect="off" autofocus="autofocus" class="form-control input-with-feedback ng-pristine ng-untouched ng-valid ng-valid-sp-disallow-chars ng-not-empty ng-valid-required" id="login-username" name="username" ng-model="form.username" ng-trim="false" placeholder="username or email address" required="" sp-disallow-chars=":%&'`´"" sp-disallow-chars-model="usernamedisallowedchars" style='background-image: url("data:image/png;base64,ivborw0kggoaaaansuheugaaabaaaaascayaaabso15qaaaaaxnsr0iars4c6qaaaubjrefuobgvve2oruaqlvis4gwzeyshkhgnkmiec4zejxcmnwtwtmdh3ugcyoafhzufczfvnu4wiaie+vvq6+6qtgthgh6o4/ja7x1oicaipwj7colgsxdxsjevzat9k01cbkdwfsff/2wnuewc2yqigkzpk9glalvvwttnbqjzlnlckitaznf/mepb2birdhwhdf2hjemgarrwpa+qqoi4jle5/8xkxzrcfohg+/5icdpm13utho7q9/0wnsfwil/ouhwhrjgqr8wewvg+oxpmpadakdzvd7asc8qyhcikjjirnckwbrsmw9hcq5zv9masbeu6hjrnyrggfukacnwjkjzposik1d1gddecqobobwswzabd/d3np7ahoirvnphmpi+kc2rzbm3bcp8wuwsiot7qq0pznor6wysk0xb/agvlcwwc7ng3aaaaaelftksuqmcc"); background-repeat: no-repeat; background-attachment: scroll; background-size: 16px 18px; background-position: 98% 50%; cursor: auto;' type="text"/> <!-- ngif: accounts.username.$dirty && accounts.username.$invalid --> </div> </div> <div class="row" ng-class="{'has-error': (accounts.password.$dirty && accounts.password.$invalid)}"> <div class="col-xs-12"> <label class="control-label sr-only ng-binding" for="login-password"> password </label> <input autocomplete="off" class="form-control input-with-feedback ng-not-empty ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" id="login-password" name="password" ng-model="form.password" ng-trim="false" placeholder="password" required="" style='background-image: url("data:image/png;base64,ivborw0kggoaaaansuheugaaabaaaaascayaaabso15qaaaaaxnsr0iars4c6qaaaubjrefuobgvve2oruaqlvis4gwzeyshkhgnkmiec4zejxcmnwtwtmdh3ugcyoafhzufczfvnu4wiaie+vvq6+6qtgthgh6o4/ja7x1oicaipwj7colgsxdxsjevzat9k01cbkdwfsff/2wnuewc2yqigkzpk9glalvvwttnbqjzlnlckitaznf/mepb2birdhwhdf2hjemgarrwpa+qqoi4jle5/8xkxzrcfohg+/5icdpm13utho7q9/0wnsfwil/ouhwhrjgqr8wewvg+oxpmpadakdzvd7asc8qyhcikjjirnckwbrsmw9hcq5zv9masbeu6hjrnyrggfukacnwjkjzposik1d1gddecqobobwswzabd/d3np7ahoirvnphmpi+kc2rzbm3bcp8wuwsiot7qq0pznor6wysk0xb/agvlcwwc7ng3aaaaaelftksuqmcc"); background-repeat: no-repeat; background-attachment: scroll; background-size: 16px 18px; background-position: 98% 50%; cursor: auto;' type="password"/> <!-- ngif: accounts.password.$dirty && accounts.password.$invalid --> </div> </div> <div class="row row-submit"> <div class="col-xs-12 col-sm-6"> <div class="checkbox"> <label class="ng-binding"> <input class="ng-pristine ng-untouched ng-valid ng-not-empty" id="login-remember" name="remember" ng-model="form.remember" type="checkbox"/> remember me <span class="control-indicator"> </span> </label> </div> </div> <div class="col-xs-12 col-sm-6"> <button class="btn btn-sm btn-block btn-green ng-binding"> log in </button> </div> </div> </form>
you can use $.ajax method post value without action.
Comments
Post a Comment