Forum Discussion
Dormelchen_1077
Nimbostratus
Apr 30, 2010is it possible to get a valid response ?
hello,
i have a problem.
Part of the rule:
when CLIENT_ACCEPTED
{ persist none }
when HTTP_REQUEST {
set lowerURI [string tolower [HTTP::uri]]
log loc...
Michael_Yates
Nimbostratus
Apr 30, 2010I couldn't get either of these to work when I tested them. I've had great success adding to the URI, and would like to know how to specifically remove from it (without Chunking).:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/b2b" } {
HTTP::path [string range [HTTP::path] 3 end]
}
}
or
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/b2b" } {
HTTP::path [string trimleft [HTTP::path] /b2b]
}
}
Any insight?
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