Forum Discussion
Marco_Nietz_387
Nimbostratus
Dec 03, 2008Change 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
3 Replies
- hoolio
Cirrostratus
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.htmlwhen 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 - Marco_Nietz_387
Nimbostratus
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 - hoolio
Cirrostratus
Much appreciated. Thanks.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects