Forum Discussion
yaron123142124_
Nimbostratus
Dec 03, 2015Hi how do i remove paramter and random value from url?
how to remove parameter from URL with IRULE F5 but leave all other url syntax unchanged
this is the url with f5 ip address
http://192.168.1.1/OKFAC_rit/GetOan?order=desc&orokl=time&id=30&identit...
StephanManthey
Nacreous
Dec 08, 2015Hi, if the expanded [HTTP::request] does not the search pattern of _getvideolist_ it might be included on the [HTTP::payload].
Do you have access to a capture you can show us (after sanitization of course), please?
As I never used the [HTTP::request] command before (always parsed path, query, header names and values separately) I made a quick test on v11.5.1. When sending a POST with some data the data will not be included in the return value of [HTTP::request]. Instead it will show up in [HTTP::payload].
In your sample code above a single test after the lower case conversion (by using the [string tolower ...] should work, in case the pattern is part of the URI, headers or header values. At least it worked fine in v11.5.1.
If you want to use a regex, the search pattern can be made case insensitive via preceding (?i):
{[HTTP::request] matches_regex {(?i)_getvideo_} }
Thanks, Stephan
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
