HTTP:Content <remote url>
Hi All,
Im wondering if its possible to grab data from a remote URL and inject content via an irule.
Currently I have an I rule that pulls from Ifiles
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
HTTP::respond 200 content [ifile get maint_index_txt]
}
}
However if I get a 503 my maint page does not come up because the webserver is technically down. what I would like to do is Inject a maint page based off the url and refresh the URI so that if a pool is empty the page will display a customized HTML page.
Something like this
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
HTTP::respond 200 content [http://remotesite/page.html]
}
}