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. ...
Dayton_Gray_103
Mar 15, 2011Nimbostratus
Yeah I am not looking to replace any data I am looking to insert a field into the post that may be missing:
This iRule will need to scan POST data from /thispage.php and POST data from /overhere/thispage.php. If "&thisParam=" is not present in the POST data the iRule will need to insert "&thisParam=" to the post data.
I can see how to replace data fairly easily, but I am unsure as to how to look for data and then insert. Keep in mind that the post fields may be different every time, some may already have &thisParam= and others will not.
Thanks!
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