HTTP Response Rewrite
I am new to iRule and Need your expertise solution on below requirement.
User is accessing the URL http://example.com/auth/v1.0/ from client computer via Load Balancer and LB forwards the request to the Backend Real Server.
now, server gives the response, Here, Server Inserts a Header "X-Storage-Url" in the Response (Mentioned Below).
X-Storage-Url: https://example.com/v1/AUTH_example
post receving the response from server, Client initiates a new connection to the URL mention on the "X-Storage-Url" Response header.
Now requirement is to rewrite the "X-Storage-Url" header response in Load Balancer as below and pass the response to client so that Client can initiate a connection on HTTP.
X-Storage-Url: http://example.com/v1/AUTH_example
Note: Load Balancer has to rewrite only Protocol Type from "HTTPS" to "HTTP" there is no chance to make any changes on the Application side and it has be made on Load Balancer only.
Hope you understand the requirement. Kindly help us, how we can achieve this using iRULE.