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...
khawasli_50856
Nimbostratus
Mar 11, 2011Sorry about that ....... but pleae do not take my example litterly,what I was trygin to say that generally speking buffering cannot match long strings... the example I faced as far as I remember (I might be showing some mistakes) is rewriting this
var. Varname. = "somevalue"
And rewriting it to
var varname="somevalue"
But like I said before in complex irule like an irule that is use for identifying and encrypting uris treaming is not effecient.... so my issue is not specific to those example it is more general
Thank you hoolio
- 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