Totally blank on the scripting side of things so here is the scenario for which iRule needs to be written. Looking for some insight here as to what's the logic to apply here.
Situation ...
Also, you mention that the requests are being made over HTTPS. In order to view/modify the HTTP content on LTM, you will need to decrypt the SSL with a client SSL profile.