Auto Login for Reliance Broadband Unlimited users

  • Thread starter Thread starter linuxbug
  • Start date Start date
  • Replies Replies 27
  • Views Views 131,577
Status
Not open for further replies.
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.
 
And here's a shell script that works. I'm using wget instead of curl though, as that's what I'm more familiar with.
HTML:
#!/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
 
Status
Not open for further replies.
Back