Forum Discussion

FSC-IT_27241's avatar
FSC-IT_27241
Icon for Nimbostratus rankNimbostratus
Sep 25, 2008

Stream Profile and iRules

When trying to replace part of a uri via a stream profile is it enough to simply fill out the source and target in the stream profile or do I have to have an irule to act upon the profile?

 

 

Same question only simpler: I put the string I want to match and the replacement string in a stream profile but nothing seems to be replaced.

 

 

Thanks,

 

Jer

2 Replies

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Adding the stream profile to the VS should be enough. However that will do the replacement on ALL content. Including binaries etc. You may wish to use an iRule instead and test for content type of text/html before enabling it.

     

     

    H

     

  • Not only will the stream profile be applied to all content types, it will also be applied to request payloads. I'd suggest always enabling a stream profile with an iRule so you can specify when you want to perform the replacement(s). You can check the STREAM::expression wiki page (Click here) for examples of this.

     

     

    Aaron