Forum Discussion
greenasp_41938
Nimbostratus
Jun 17, 2013Sorry Page with images 10.x
iRule:
when HTTP_REQUEST {
HTTP::respond 200 content "
http://www.w3.org/1999/xhtml\" lang=\"en\">
ETC
ETC
IMAGE HERE
...
nitass
Employee
Jun 17, 2013I have alway used inline base64.i see.
The problem is, I don't know how to call for an image from within a Data Class Group.can you get image from data group by searching user-agent?
e.g.
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
log local0. "\[class match -value [string tolower [HTTP::header User-Agent]] continue images_class\]=[class match -value [string tolower [HTTP::header User-Agent]] contains images_class]"
}
}
[root@ve10:Active] config b class images_class list
class images_class {
{
"android" { "klsjflkajjewi" }
"apple" { "flkajslkdjflka" }
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Jun 17 20:08:05 local/tmm info tmm[4950]: Rule myrule : [class match -value .mozilla/5.0 (linux; u; android 4.0.3; ko-kr; lg-l160l build/iml74k) applewebkit/534.30 (khtml, like gecko) version/4.0 mobile safari/534.30 continue images_class]=klsjflkajjewi
Jun 17 20:09:54 local/tmm info tmm[4950]: Rule myrule : [class match -value mozilla/5.0 (iphone; u; cpu like mac os x; en) applewebkit/420+ (khtml, like gecko) version/3.0 mobile/1c25 safari/419.3 continue images_class]=flkajslkdjflka
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects