Forum Discussion
nshelton85
Altostratus
Sep 14, 2018Extracting specific information from an HTTP POST and logging it.
I am trying to log the IP address and usernames that are attempting to login to our web portal. I have the iRule mostly working, but I am having difficulty finding out how to extract certain pieces o...
Stanislas_Piro2
Cumulonimbus
Sep 14, 2018You can try this:
set user [ URI::query ?[HTTP::payload] user ]
URI::query search the query string in a URI (starting with ?), then search the parameter user and return the value.
As standard POST content format is the same as a query string, add a ? before payload to use URI::query command...
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
