Forum Discussion
Dayton_Gray_103
Mar 11, 2011Nimbostratus
Checking for and inserting strings into a POST
I've seen several examples of how to match and replace a string within a POST such as here. I am wondering if it is possible to search for a string in the POST data and insert it if it doesn't exist. ...
Michael_Yates
Mar 14, 2011Nimbostratus
The short answer is Yes, you can do that.
The more complicated part of the answer depends on you search criteria. You can use a stream profile post that you referenced, but with a stream profile it will replace a string with a string.
Example: "yourID=" can be replaced with "newID="
Otherwise you will need to write an iRule that will analyze the [HTTP::uri], [HTTP::path], and/or [HTTP::query] to find what you are looking for (or what is missing) and take a specific action.
We will need a more detailed description of exactly what you are looking for to know which one you will need to use.
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