Forum Discussion
Lee_Keener_5402
Nimbostratus
Aug 27, 2015iRule for HTTP Status and specific header not working
Greetings,
I have a web application developer asking me to be able to clear the WWW-Authenticate header when the HTTP status is 401. I wrote the rule below thinking it would work but it seems to...
Kevin_Stewart
Employee
Aug 27, 2015I don't think there's anything technically wrong with what you have, but try this minor modification:
when HTTP_RESPONSE {
if { ( [HTTP::status] eq "401" ) and ( [HTTP::header exists WWW-AUTHENTICATE] ) } {
HTTP::header replace WWW-Authenticate ""
}
}
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