Forum Discussion
Remove uri value and add to a header rewrite
Hi, could someone help me create an irule that would accomplish the following please? I need to read a particular value being sent to the F5, then strip this value and add it as a Header. These are the components of the request:
Receive an http/https (POST,GET,PUR,DELETE) message which might or might not have a body and transform the following parts:
Url: https://abc.domain.com/Account/1234?AuthToken=ABC123
And transform this to:
Add Header: Authorization: Bearer ABC123
URL: https://abc.domain.com/Account/1234
I'm not that good with irules and I need to get this done quickly, so any help would be really appreciated :)
Many Thanks
You should be able easily construct iRules based on the examples in the following relevant links:
https://devcentral.f5.com/wiki/iRules.HTTP__uri.ashx https://devcentral.f5.com/wiki/iRules.uri.ashx https://devcentral.f5.com/wiki/iRules.URI__query.ashx https://devcentral.f5.com/wiki/iRules.URI__path.ashx
Recent Discussions
Related Content
* 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