Forum Discussion
Pratipal_340236
Nimbostratus
May 09, 2019iRule URI redirect based on TCP Payload
Hi,
Below is the request I am receiving on my F5 on 1 virtual server. I want to route the request when the data payload contains "shortCode": "53747"
POST /sm/sms-mo HTTP/1.1
Content-Type: app...
Pratipal_340236
Nimbostratus
May 09, 2019Tried this variation, but still didn't worked
when HTTP_REQUEST { TCP::collect }
when HTTP_REQUEST_DATA { if {[HTTP::uri] starts_with "/sm/sms-mo" }{findstr [TCP::payload] "53747"} { HTTP::uri [string map -nocase {"/sm/sms-mo" "/IMOST/calro/sms/notifySmsReception/v1"} [HTTP::uri]] log local0. "changede1 $[HTTP::uri]" pool IMOST_28480_TESTBED }
}
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
