Forum Discussion
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]
}
}
- Richard__HarlanHistoric F5 AccountIf you want to get the response from a remote system and display it as the maint page. I would use a sideband connection to pull the remote content then push it to the customer.
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