vendredi 18 août 2017

How to use curl commands in multiple web login

The login process is completed through a three-step process:

  1. Enter user name and password

    curl --user username:passwd --cookie-jar ./file_a website/account/login
    
    
  2. Authorise in next page

    curl --cookie ./file_a website/account/index 
    
    
  3. Approve via time duration needed

    curl --cookie ./file_a website/account/approve 
    
    

I used the above curl commands through a shell script, but it is not working.

I am sure in the third stage I have to mention the time-duration I am requesting for access license. Two options are available: 60 minutes and 1 hour.

Can anyone help me complete the work?




Aucun commentaire:

Enregistrer un commentaire