Forum Discussion

Striker_88408's avatar
Striker_88408
Icon for Nimbostratus rankNimbostratus
Oct 01, 2007

Replace Command

Hi guys,

 

 

I got a question about the "replace command" that is shown in the iRules below.

 

 

Can you give me a good description of what does this command in this iRules ?

 

 

when HTTP_REQUEST {

 

 

if {[HTTP::host] eq "www-test.test.com" } {

 

HTTP::header replace Host www.google.com

 

 

Thank you in advance,

 

 

Striker

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    The command you're actually using is the HTTP::header command. You're using the replace operator with that command, which will replace whichever header you specify with the value you specify, as described on the Wiki page here: Click here

     

     

    HTH,

     

    Colin