Forum Discussion
Jon_Strabala_46
Feb 03, 2010Nimbostratus
Thanks Aron, this worked great
when RULE_INIT {
prepare a (44 byte transparent) gif for short-circuit injections
set ::base641x1tgif "R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOwA="
set ::i1x1tgif [b64decode [lindex $::base641x1tgif 0]]
}
when HTTP_REQUEST {
HTTP::respond 200 content $::i1x1tgif noserver "Content-Type" "image/gif"
HTTP::respond 200 content $::i1x1tgif "Content-Type" "image/gif"
}
Note, you do not need to account for the extra length for other characters such as the content type. You can and 1-N response headers at in the response this is not considered content.
Jon