Forum Discussion
Erika_I_Garner
Altostratus
Oct 13, 2017parse username
I am trying to get only the UserID with the following iRule, but I end up getting it and also the password and I only want the UserID. Can someone help me, this is driving me crazy!
when HTTP_REQUE...
Kevin_Davies
Nacreous
Oct 13, 2017Updated iRule using findstr...
when HTTP_REQUEST_DATA {
Set UserID [findstr [HTTP::payload] "UserID=" 7 "&"]
log local0. "User $UserID attempted login from [IP::client_addr] and referer: [HTTP::header "Referer"]"
}
Does that work better for you?
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