Modify HTTP resonse redirect
I have a webserver generating a 302 redirect to the client, sending them to a location of:
I need to modify this response to change the strings in the Location to be https if they are not already. In effect, an iRule to find the string of URI=, look at the next 5 characters, if they are http: change them to https:
I'd like this function to apply to both instances of the URI= in the HTTP response Location header.
Out of interest, I need this iRule to workaround an issue with a GetAccess server behind an SSL terminating BigIP version 9.2.4. The requests to the GetAccess server are in HTTPS but the redirects it generates contain http references in the Location as described above.
Could anyone point me in the right direction to accomplish this?