Dbow_21284
Nov 06, 2009Nimbostratus
HTTP Authentication Monitor - Two Steps Needed Though
Hello
I have an old CF application that is still heavily used and the application developers have no time to rework the site. I want to load balance the site and create a monitor that will look at http://something.mydomain.com/whatsup.cfm which returns a "1-UP".
ISSUE: The way the site was coded, you cannot go directly to that page with login. No matter what URI you enter, you get a login and after you authenticate the site always takes you back to http://something.mydomain.com/index.cfm. I have used external monitors in the past which work great so I have experience with using that with http auth and testing for string. AN example of ones I am using are:
curl -L -v --user 'loser:password' http://${IP}:${PORT}/_layouts/ACCApplications/CommonLogin/login.aspx?ReturnUrl=%2fwhatsup.aspx -H "Host: something.mydomain.org" | grep -i "1-UP"
So my question is ... how can I tweak this. Can I have two curl statements?
1) First statement accesses http://something.mydomain.com/index.cfm and logins
2) Step 2 goes to /whatsup.cfm after authentication using same connection and grep test for "1-UP"?
I couldnt find any examples of this in this forums. OR ... is there another way to do this. I tried this and I get a "HTTP/1.1 302 Moved Temporarily" error when putting /whatsup.cfm directly in a single curl statement becuase of redirecting back to the /index.cfm. So I need to some home step this through.
Look forward to feedback. I have never not had an issue resolved in this place. Thanks
Dbow