Forum Discussion
Xavier_113679
Nimbostratus
Aug 06, 2012Passing variable to http monitor
Hi, I'm trying to setup a monitor for a pool containing 3 members that will call a servlet located on a different server. Here's an idea GET /rsa_check?$NODE HTTP/1.1\nHost: server_hosting_s...
I've only seen the persist add statement on the serverside events.
- Kevin_DaviesJun 25, 2020
Nacreous
You will need to clarify, do you mean this?
- HTTP POST Request -> 302 HTTP Redirect from the iRule
- HTTP POST Request with new destination -> FAIL
- HTTP GET Request with new destination
The GET and POST method directly to redirected URL https://xyz.com/* works perfectly ok.
And GET method to actual URL https://abc.com/* , redirects perfectly to https://xyz.com/* with no header content being missed.
only problem is with POST method where the actual URL's https://abc.com/* redirection is working but the header content is being missed - not giving the expected results.
Try with HTTP::respond 307 for the POST and 302 for the GET
if { [string tolower [HTTP::method]] eq "post" } {
HTTP::respond 307 Location "https://test.example.com" }
Hints:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302