Forum Discussion
Jun 16, 2008
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?
If that's the case, then have you verified that you've applied this http profile to your virtual server? If so and it's still not working, this this really isn't a question on the API but you might need to get in touch with product support to see why the feature on the device isn't working.
Now, if you are saying that the checkbox isn't getting set in the GUI, then what are you specifying for the default_flag value in the ProfileMode structure? Try setting that to 0.
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);
I haven't tested this in Java, so I apologize in advance for any syntax errors.
-Joe