Forum Discussion

tdoc_90806's avatar
tdoc_90806
Icon for Nimbostratus rankNimbostratus
Feb 14, 2018

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