Forum Discussion
iRule To Test Webpage Login
I ended up running the command below and it seemed to login and return different output. I ran the command a second time and received an Invalid Viewstate error with the F5's ip address in the output. This OK because it still returns a 302 redirect code. I've seen the same Viewstate error from Chrome due to some cookie bug in the browser so Im pretty this command worked. Now I need to be able to put this into a health monitor so it monitors each web server instead of going to the public ip address which is what the cURL command is doing. I feel like the below is capturing encrypted information that might change? The monitor that I configure should stay up as long as it receives a 302 code.
curl -v https://example.com/login.aspx?ReturnUrl=/ -d "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJMzIxMjI5MTcyD2QWAgIBD2QWAgIBDxYGHgRocmVmBSdBcHBfVGhlbWVzLzIwMDgvTWFzdGVyQWxsU3R5bGVTaGVldC5jc3MeBHR5cGUFCHRleHQvY3NzHgNyZWwFCnN0eWxlc2hlZXRkZFOobZPm9K3a4hO1RnWM33CEyppfhZZNi7oOQn5FTVQm&__EVENTVALIDATION=%2FwEWBALpwI7uBQLG%2BZuPDwK238z2DgLEg7eLCxcPmUfclikGHAdQZaZkRGQ0k287r7t9ulIfYyTL3%2Fv5&loginControl%24UserName=fakeusername&loginControl%24Password=fakepassword3&loginControl%24LoginButton=Log+In"
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