Thanks a lot.
I was able to solve the problem.
The domain was not getting resolved to ip.
i tried
https://172.31.7.196:8443/home and it worked.
and also automated the internet connection login .
script used is as follows.
wget -q -t=3 -T=5
Google -O /tmp/index.google &> /dev/null
if [ ! -s /tmp/index.google ];then
echo "Internet is Not working. Testing ISP" >>/opt/log
wget -q -t=3 -T=5
:::::New day on the web ::::: -O /tmp/index.tata &> /dev/null
if [ -s /tmp/index.tata ];then
echo "ISP is UP. Trying to Login" >>/opt/log
#curl login script
curl -k -A "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729)" -e
https://172.31.7.196:8443/home -b relcookie -d "user=username&username=
yourusername%40vsnl.net&ServerList=
vsnl.net&password=
password&save=2" "https://172.31.7.196:8443/user/refresh/home" --connect-timeout 15 --max-time 20 --retry 2 --retry-delay 5
delete index.tata file
unlink /tmp/index.tata
else
echo "ISP is Down" >>/opt/log
fi
else
echo "Internet seems ok..." >>/opt/log
unlink /tmp/index.google
fi
change username, password and ip if required in the above script to make it work.
you can run script in startup.
Thanks.