Forum Discussion
ssievers_87378
Nimbostratus
Oct 29, 2012Log length of css file in response
Hi,
I have a problem in the following case:
On a website there is a css-file that sometimes is not completely transferred to the client in the response. Now I like to write an iRule, that ...
ssievers_87378
Nimbostratus
Oct 29, 2012Hi,
yes - I know. I wrote an iRule in my first try like this:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/a/b/main.css" }
log local0. "CSS-DEBUG: [HTTP::uri]"
}
}
when HTTP_RESPONSE {
if { [HTTP::header "Content-type"] eq "text/css" }{
log local0. "CSS-DEBUG: Content-Length is [HTTP::header Content-Length]"
}
}
The log shows me now all Content-Length values for all css-Files delivered to the clients (there is more than one css-File on the site). How can I only log the contend length from the main.css ?
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
