Hey Willy,
I believe this will do exactly that. You might want to consider, however, using a data group and matchclass for this, though. This will make it a lot easier to change the list of content-types in the future without actually changing anything in the rule.
It would probably look something like this:
when HTTP_REQUEST {
if { [matchclass $::content-type contains [HTTP::header "Content-Type"]] } {
STREAM::expression {"@http://learning.usuhs.mil@https://learning.usuhs.mil@"}
}
}
Be sure to read the notes about using the partial match operators here, though:
http://devcentral.f5.com/wiki/default.aspx/iRules/matchclass.html
\\ Ben