Forum Discussion
http monitor (webpage logon)
I currently have the below http monitor used to verify that a webpage is present on all of the members of a certain pool.
Send String: GET /portal/viewLogin.eig HTTP/1.1\r\nHost: (host)\r\nConnection: Close\r\n\r\n
Receive String: Welcome to Active Directory Login.
This works fine but I want to actually be able to logon to the webpage and scrap off text. Is this something I can accompish without creating a custom EAV monitor? Below is the link I can use to logon to the page (removed internal info from link). Can someone help guide me through getting this to work? I have tried a few variations but have so far been unsuccesfull. Thank you.
http://(server name)/portal/ADprocessLogin.eig?adLoginId=(logon)&adPassword=(password)&domain=(domain)&start=Sign%20In
Environment:
11 Replies
- What_Lies_Bene1
Cirrostratus
Soap, you may want to edit your post and remove the Host value shown in the first Send String.
Regarding the monitor, can you do a packet capture of a login request and see if there are any other headers that might be related that will need to be presented in the monitor. Also I assume the login is a POST, not a GET? - Soap_111722
Nimbostratus
Okay, I tried the below string without any success. I will run the requested traces and also look at some more POST examples to see if I just have something wrong or missing below. Thank you for your reply.
POST /portal/viewLogin.eig HTTP/1.1\r\nHost: (host)\r\nConnection: Close\r\n\r\nadLoginId=(login)&adPassword=(password)domain=(domain)
- What_Lies_Bene1
Cirrostratus
I'd say it should look more like this, I don't see a need to split the URL up;POST /portal/ADprocessLogin.eig?adLoginId=(logon)&adPassword=(password)&domain=(domain)&start=Sign%20In\r\nHTTP/1.1\r\nHost: (host)\r\nConnection: Close\r\n\r\n - What_Lies_Bene1
Cirrostratus
The &'s should be just &'s. - nitass
Employee
isn't loginId=&password=&start=Sign+In in message body? - Soap_111722
Nimbostratus
Posted By nitass on 02/27/2013 06:32 AM
isn't loginId=&password=&start=Sign+In in message body?
What do you mean? Sorry, this isn't something I have supported in great detail in the past, but am really leanring everything from the ground up as I migrate everything from our old hardware that was running 9.4Below is the communications I see when performing a trace while logging into the site.
Request, POST /portal/ADprocessLogin.eig
Response, HTTP/1.1, Status: Moved temporarily, URL: /portal/ADprocessLogin.eig
Request, GET /portal/displayApplication.eig
Response, HTTP/1.1, Status: Ok, URL: /portal/displayApplication.eig
HTTP Payload, URL: /portal/displayApplication.eig - What_Lies_Bene1
Cirrostratus
Hmmm, seems Nitass is right. Where is the login and password information? Doesn't look like it's in the request URL. - Soap_111722
Nimbostratus
The application group that wanted the monitor had given me that URL, which when plugged into the address window will log you into the site. I am trying to login and then pull something from the page to validate that the servers in the pool are functioning as they have been having issues where the application will hang up not allowing a user to login but the login page itself is present.
- What_Lies_Bene1
Cirrostratus
OK, does it work if you paste the URL into a browser? Can you do a packet capture to really get the lowdown on what's what? The trace above is very low on detail. - Soap_111722
Nimbostratus
Yes, if I use the link in my first post I am able to logon to the page I need. Can't seem to add an image file without getting some editor errors, will just copy/paste instead....
Request, GET /portal/ADprocessLogin.eig, Query:adLoginId=(LoginId)&adPassword=(Password)&domain=(domain)&start=Sign%20In
Response, HTTP/1.1, Status: Moved temporarily, URL: /portal/ADprocessLogin.eig
Request, GET /portal/displayApplication.eig;jsessionid=CFB31D191FDFDC4567B024AC1C543C7E
Response, HTTP/1.1, Status: Ok, URL: /portal/displayApplication.eig;jsessionid=CFB31D191FDFDC4567B024AC1C543C7E
HTTP Payload, URL: /portal/displayApplication.eig;jsessionid=CFB31D191FDFDC4567B024AC1C543C7E
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com