Forum Discussion

Marco_Nietz_387's avatar
Marco_Nietz_387
Icon for Nimbostratus rankNimbostratus
Dec 03, 2008

Change a Profile Setting with iRules

Hi,

 

 

the Wiki for Profiles http://devcentral.f5.com/wiki/default.aspx/iRules.PROFILE starts with:

 

 

'These commands allow you to get or set information and options regarding profiles.'

 

 

Im able to get any Information from a Profile, but now i want to set one of these Parameters within an iRule.

 

 

For Example change PROFILE::http response_chunking from 1 to 2

 

 

How can I achieve this ?

 

 

 

Regards

 

Marco

 

 

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi Marco,

    I would guess that you cannot change the setting using PROFILE:: commands as the PROFILE::http wiki page states you can get (not set) the values. Maybe someone else can clarify this?

    There is an existing CR requesting that F5 document the PROFILE:: commands (CR74323). Perhaps you could open a support case with F5 and ask for details on your question and have them attach your case to the CR. It would help raise the visibility of the request.

    Also, depending on what you're actually trying to accomplish, you might be able to do it using the HTTP:: commands (Click here). Response chunking would either be enabled or disabled. If you want to prevent the server from sending a chunked response, you could set the HTTP version to 1.0 instead of 1.1:

    http://devcentral.f5.com/wiki/default.aspx/iRules/CreditCardScrubber.html

     
     when HTTP_REQUEST { 
        Don't allow data to be chunked 
       if { [HTTP::version] eq "1.1" } { 
           if { [HTTP::header is_keepalive] } { 
              HTTP::header replace "Connection" "Keep-Alive" 
           } 
           HTTP::version "1.0" 
        } 
     } 
     

    Thanks,

    Aaron
  • Hi Aaron,

     

     

    thanks a lot for your Help. Your Suggestion works fine for me.

     

     

    I've opened a Ticket on the F5 Websupport and suggest to update the Documentation.

     

     

     

    Regards

     

    Marco