Forum Discussion
Vishal_96707
Nimbostratus
Jan 21, 2009iRule for Response Header "content-length"
I need help with getting the "content-length" value in Response header. Basically the iRule should check for HTTP "Status" 404 and "content-length" not equal to zero.
Thanks in a...
Vishal_96707
Nimbostratus
Jan 23, 2009Can you guys help me with troubleshooting. The first part didnt work as expected. I am not getting any response code when i try to go to non-existent sharepoint site.
when HTTP_RESPONSE {
Check if response code is a 404 and the Content-Length header value is 0
if {([HTTP::status] == 404) && !([HTTP::header value "Content-Length"] == 0)}{
log local0. "[IP::client_addr]:[TCP::client_port]: Found 404 response with Content-Length as [HTTP::header value "Content-Length"]"
HTTP::redirect "https://intranet.mydomain.com/_layouts/redirects/Default.aspx?URL=$MYHOST$MYURL"
}
}
I want the user requests using Web Cliet or WebDav services and calling sharepoint using UNC to not redirect for checks like Desktop.ini, file existence check for owerwrite, thumbs.db etc.
Thanks in advance.
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