Forum Discussion
Chad_Roberts_21
Nimbostratus
Jan 08, 2007Problems downloading files with CACHE-CONTROL header
I asked this in response to a previous thread, but my question went unnoticed... I'll try again here.
I recently tried adding the following simple iRule to one of our web apps. It seemed to work w...
Hi Nicola,
So when you use a stream expression of {@YWRtaW46YWRtaW4=@cGlwcG86MTIzNDU=@} you see the debug being logged from the STREAM_MATCHED event, but you don't see the actual request payload modified? That doesn't sound correct.
If you want to replace the base64 encoded username:password with an encoded string from somewhere else in the payload, you would either need to set the stream expression to a regex which matches both the string you want to encode and insert as well as the string you want to replace. In the STREAM_MATCHED event you could then use STREAM::match to get the matched string and STREAM::replace to replace the string.
If you can post an anonymized sample of the request payload I can try to give you a more exact example. Else, you can check the last example on the STREAM::expression wiki page for a rough idea (Click here).
Aaron