Forum Discussion
Jaime_Quiroga
Oct 09, 2019Nimbostratus
IRULE SIDE BAND CONECTION HTTP
Hello I'm working with an irule that makes a connection with a server to get a file from this, and save the information on a table and a sub table, at this moment I have used the sintax comman...
- Oct 10, 2019
Hi Jaime,
Can you try this?
set tableKeys [table keys -subtable $db_cache_table] foreach key $tableKeys { if { $key starts_with [HTTP::path] } { # log local0. "KEY: $key # log local0. "PATH: [HTTP::path]" } }
Hi Jaime,
Can you try this?
set tableKeys [table keys -subtable $db_cache_table]
foreach key $tableKeys {
if { $key starts_with [HTTP::path] } {
# log local0. "KEY: $key
# log local0. "PATH: [HTTP::path]"
}
}
Jaime_Quiroga
Oct 15, 2019Nimbostratus
Hello
Thanks for your time in this response. I worked with this code and completed with the next code.
- when HTTP_REQUEST {
- set path_normal [HTTP::path]
- set tableKeys [table keys -subtable $db_cache_table]
- set new_path_normal [substr $path_normal 1 .]
- foreach key $tableKeys {
- if { $key contains $new_path_normal } {
- set path_virtual [table lookup -subtable $db_cache_table $key]
- }
- }
- set newpath_virtual [string map {" " "" \n "" \r ""} $path_virtual]
- if { $newpath_virtual ne "" } { virtual $newpath_virtual }
- }
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