Forum Discussion
pedinopa_170325
Nimbostratus
Aug 07, 2018trouble rewiting path
I need to rewrite the REQUEST path that is returned to the browser. I have an irule which reads the REQUEST path, splits it into a variable which has the path I want (I logged it to my logging serve...
rob_carr
Cirrocumulus
Aug 08, 2018when CLIENT_ACCEPTED {
set hsl [HSL::open -proto UDP -pool graylog2-syslog-pool]
}
when HTTP_REQUEST {
create variable to hold modified path, split on ;jsessionid
set nojsession [getfield [HTTP::path] ";jsessionid=" 1]
Check if the path contains a jsessionid
if {[HTTP::path] contains ";jsessionid"}{
write to log verify that the if clause and the variable are correct
HSL::send $hsl "webmod This is the $nojsession without sessionid"
replace the path with the variable (modified path without jsessionid)
HTTP::path $nojsession
}
}
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