HTTP::respond deliver a GIF?

Hello all,

is it possible to store anywhere at the LB an image (e.g. “blank.gif”) and to deliver this image to clients if all members of a pool are down?

I wrote this simple IRule ad its works fine, however i would like to prefer not to redirect the request but to deliver the image directly from LTM.

when HTTP_REQUEST {

if {[active_members my_pool] == 0 } {

if {[http_uri] starts_with “/xyz”} {

set Content-Type “application/x-javascript”

HTTP::respond 200 content {

var n1 = ‘’; var n2 = ‘’;

}

}

else {

HTTP::respond 302 Location “http://my.failover.net/blank.gif”

}

}

}

Regards

Ilona

There is an excellent example of what you are talking about that might work

Click here

Hope this helps,

CB

There’s also a sorry page generator that will do all the work for you, classes, images, irules, etc:

http://devcentral.f5.com/wiki/default.aspx/iRules/LTMMaintenancePageGenerator.html Click here