Forum Discussion
anoopadr_5344
Nimbostratus
Jun 16, 2008Unable to set values on a http profile
Hi,
I am trying to create a new http profile and enable the insert_xforwarded_for_header_mode for that profile.
Using the methods,
String[] newProfile = new String[]{profileName};
localLBProfileHttpBindingStub.create(newProfile);
localLBProfileHttpBindingStub.set_insert_xforwarded_for_header_mode(newProfile, modes);
the new profile is created, but the xff header is not set even though the modes has value LocalLBProfileMode.PROFILE_MODE_ENABLED.
The xff header is set to the same as its parent http profiles value by default.
How can I enable this from the java code.
thanks,
AJ
- Are you saying that the code works and the checkbox is set in the GUI, but the xff header isn't getting inserted into the http request to your web servers?
LocalLBProfileProfileModemode = new LocalLBProfileProfileMode(); mode.default_flag = 0; mode.value = LocalLBProfileMode.PROFILE_MODE_ENABLED; LocalLBProfileProfileMode [] modes = new LocalLBProfileProfileMode[]{mode}; LocalLBProfileHttpBindingStub.set_insert_xforwarded_for_header_mode(newProfile, modes);
- Great! That default flag needs to be set to false if you want to override the default behavior.
- s71211_168654
Nimbostratus
Hi. Where to see this property in GUI? Is it applicable for SSL profile also?
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