Bob_10976
Feb 24, 2011Nimbostratus
iRule Error for HTTP::respond 404
Hello all,
I'm attempting to create an iRule that will block Microsoft Office Protocol Discovery User Agent from a specfic list of VS and I keep coming up with the error:
line 4: [wrong args] [HTTP::respond]
I'm still pretty green to iRule so if anyone has any thoughts on where I'm messing up please let me know. I have the posted the code below.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::header "User-Agent"]] {
"Microsoft Office Protocol Discovery"
HTTP::respond 404
}
}
Thanks,
Bob