It seems that Reliance has changed the Login Page as well as the URL.Can anyone specify what the url is to be used with cURL now?The one that i got "http://www.reliancebroadband.co.in/reliance/login.do?action=doLoginSubmit"doesn't seem to work.
#!/bin/shOUTFILE="/tmp/reliance_login.out"QUIET="-q"USER_AGENT="--user-agent='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)'"COOKIE_FILE="/tmp/reliance_cookie.txt"COOKIE_OPTS="--load-cookies=${COOKIE_FILE} --save-cookies=${COOKIE_FILE} --keep-session-cookies"WGET_OPTS="-O ${OUTFILE} ${QUIET} ${USER_AGENT} ${COOKIE_OPTS}"USER_ID="nnnnnnnnnnnn" # replace with your User ID.PASSWD="xxxxxxxx" # replace with your password.POST_DATA="userId=${USER_ID}&password=${PASSWD}"BASE_URL="http://10.239.89.15/reliance"URL1="${BASE_URL}/startportal_isg.do"URL2="${BASE_URL}/login.do?action=doLoginSubmit"wget ${WGET_OPTS} "${URL1}"wget ${WGET_OPTS} --post-data "${POST_DATA}" --referer="${URL1}" "${URL2}"if [ $? -eq 0 ]; then lc=`grep -c "td class=\"error\"" ${OUTFILE}` if [ $lc -ne 0 ]; then echo "Login FAIL!!" fielse echo "wget FAIL!!"fi
0,15,30,45 * * * * /usr/local/sbin/reliance_login.sh > /tmp/reliance.log
0,15,30,45 * * * * /usr/local/sbin/reliance_login.sh > /tmp/reliance.log