I prefer curl which is also available in OE2.0
Code
root@dm7080:~# grep "anti_hijack\|extended_security" /etc/enigma2/settings
config.plugins.Webinterface.anti_hijack=true
config.plugins.Webinterface.extended_security=true
root@dm7080:~# SESSIONID=$(curl -s -X POST "http://localhost/web/session"|grep e2sessionid|sed 's/e2sessionid\|<\|>\|\///g')
root@dm7080:~# CURRENTRECORDINGS=$(curl -s -X POST "http://localhost/web/timerlist?&sessionid=$SESSIONID"|grep e2state|grep -c ">2<")
root@dm7080:~# echo $CURRENTRECORDINGS
0
root@dm7080:~#