need some help with forming a get that will return a 200 ok response.
the root site is https://xyz.fqdn.gov the uri I need to query is /eftxweb/access.ofx I created the following get GET /eftxweb/access.ofx HTTP/1.(0|1) host: xyz.fqdn.gov connection: close
the 302 I understand indicates a redirect, which is occurring, http to https. but I need to be able to create a health monitor that once redirected, tells me that the connection is good and the correct content is rendered, which I think should be a 200 OK.
For multi-step you’ll need to create an external monitor. Which in your case would be something like a bash script that uses curl to access the content, testing the results along the way…
If the requests can be done independently (e.g. You want to verify the redirect AND that the content for the redirect is there, but you don’t need to do 1, followed by the other) then you could simply attach an HTTP monitor for the initial access and check the redirect is there, then a second (HTTPS) monitor that accesses the (Static) URI to verify the content from that.
I think there’s a better way to do this though… Do you really need to check both the HTTP and HTTPS server working on a node for the pool member to be considered up?
send string GET /eftxweb/access.ofx HTTP/1.1\r\nHost: xyz.fqdn.gov\r\nConnection: close\r\n\r\n my receive string I’ve tried 200 OK, 302 Found and nothing, all of which produce the same result…pool members downed.
send string GET /eftxweb/access.ofx HTTP/1.1\r\nHost: xyz.fqdn.gov\r\nConnection: close\r\n\r\n my receive string I’ve tried 200 OK, 302 Found and nothing, all of which produce the same result…pool members downed.