Forum Discussion
gerald_wegener_
Nimbostratus
Jul 11, 2005Regsub always returns a 1 never 0
I've tried running the script that is posted which uses regsub to search for Social Security Numbers in the form xxx-xx-xxxx. I've tried several different permuations of this but can never get anythin...
Mar 03, 2006
I believe the header is "Content-Type", not "Content-Types". Also, you aren't terminating the header name with a quote. That could be where your problem lies. I would use something like this:
...
if { [matchclass [HTTP::header "Content-Type"] equals $::ContentTypes] } {If that still doesn't work, the docs for matchclass say that you should use the data group first, but I've been told it should work both ways. You can try this as well.
...
if { [matchclass $::ContentTypes equals [HTTP::header "Content-Type"]] } {If it still doesn't work, I'd throw in some logging as to what the value of [HTTP::header "Content-Type"] is.
-Joe
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
