Curl login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JaAnTr
    Junior Member
    • Sep 2015
    • 1

    #1

    Curl login

    Hi,

    I was just wondering why the login request using the curl script on the wiki always says invalid username and password even though I know for a fact that I am entering the correct username and password.

    Code:
    curl -k -i -H "Accept: application/json" -H "X-Application: <AppKey>" -X POST -d 'username=<username>&password=<password>' https://identitysso.betfair.com/api/login

    But this code I found on the forum works fine, although doesn't return a JSON but writes to a text file. Also why does this code not need an App key but the one on the wiki does?

    Code:
    curl "username=USERNAME&password=PASSWORD&login=true&redirectMethod=POST&product=home.betfair.int&url=https://www.betfair.com/" https://identitysso.betfair.com/api/login

    Thanks!
    Last edited by JaAnTr; 13-09-2015, 06:18 PM.
Working...
X