Check_http redirect
Posted: Wed Dec 09, 2015 5:57 am
I am trying to Monitor a Webpage to make sure it is always running.
The issue I am having is i get redirected to an Authentication Page and I can't get the command to input the Username and Password and redirect me to the webpage
Entering this url - http://urladdress/services Redirects me to here - http://CASserver/urladdress/services and I want it to redirect me back to http://urladdress/services after the user and password has been entered.
The commands I have tried are below and I always get to the login page and do not get redirected after
check_http -I ipaddress -H localhost -u http://urladdress/services -f follow -P "username=user&password=password" -s "you are logged in"
check_http -I ipaddress -H localhost -u http://urladdress/services -f follow -P user:password -s "you are logged in"
check_http -I ipaddress -H localhost -u http://urladdress/services -f follow -a "username=user&password=password" -s "you are logged in"
check_http -I ipaddress -H localhost -u http://urladdress/services -f follow -a user:password -s "you are logged in"
The reply is always HTTP CRITICAL: HTTP/1.1 200 OK - string 'you are logged in' not found on http://CASserver/urladdress/services
The issue I am having is i get redirected to an Authentication Page and I can't get the command to input the Username and Password and redirect me to the webpage
Entering this url - http://urladdress/services Redirects me to here - http://CASserver/urladdress/services and I want it to redirect me back to http://urladdress/services after the user and password has been entered.
The commands I have tried are below and I always get to the login page and do not get redirected after
check_http -I ipaddress -H localhost -u http://urladdress/services -f follow -P "username=user&password=password" -s "you are logged in"
check_http -I ipaddress -H localhost -u http://urladdress/services -f follow -P user:password -s "you are logged in"
check_http -I ipaddress -H localhost -u http://urladdress/services -f follow -a "username=user&password=password" -s "you are logged in"
check_http -I ipaddress -H localhost -u http://urladdress/services -f follow -a user:password -s "you are logged in"
The reply is always HTTP CRITICAL: HTTP/1.1 200 OK - string 'you are logged in' not found on http://CASserver/urladdress/services