How to use linux curl to login and retrieve data once logged?
问题 I have a device Stiebel Eltron heat pump home and I would like to use Linux shell curl (not php) curl to login (POST) and retrieve (GET) data once logged Here is how my curl login POST call looks like (I used Firebug + persist option to copy/paste the below): curl --data-urlencode 'userName=tutu&password=xx' \ 'https://thesite/api/login?noCacheDummyValue=1459356436185' -X POST \ -H 'Host: thesite' \ -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0'