CURL login for login.live.com

I am trying to login to live.com via cURL

Has anyone tried this before? Could you post your script?

thanks

Now I use this command ...

curl --cookie cjar3 --cookie-jar cjar3 --data 'PPSX = P & PwdPad = & type = & login =xxx@xxx.xxx & passwd = xxxxxxxxx & SI = Accedi & radio = 2' --location --output / home / mauripz / temp / Nuova / loginresult.html https://login.live.com/ppsecure/post.srf

but I get the error "Invalid email address or password"

UPDATED: using only one -data, but still get the same error

+4
source share
1 answer

Unfortunately, I did not do this for live.com, so I cannot provide you with a script. However, I faced a similar situation when logging in to cURL at Salesforce.com and hopefully can point you in the right direction.

The login form for live.com has an onsubmit function called OnSigninSubmit. The script is located at ( https://login.live.com/pp650/JS/PPPrimary.js?x=6.5.11760.0 ) and has been minimized by MS. I made this a little more readable at http://pastebin.com/f34f2593b .

Perhaps to prevent spam registration forms from being blocked, Microsoft manipulates the form data and adds additional fields or modifies the fields you submit with its Javascript functions. You need to recreate these conditions for the username / password you want to send.

+3
source

All Articles