Forum Discussion
Nate_W_50838
Jan 29, 2009Historic F5 Account
Problem disabling pool member via pyControl
I'm trying to write a very basic python script to add a pool member to an existing pool, then disable it. My script is this:
!/usr/bin/env python
import pycontrol.pyCont...
Hi,
Can you clarify what you're trying to achieve? Do you want to inject javascript in the response content? Or do you want to actually force LTM to make a request to a Javascript file and send that as the response to any request containing /FooPage/ in the URI?
Thanks, Aaron
You could try an iRule that checks if the request is HTTP2 and then change the pool based on that like this:
when HTTP_REQUEST { if{[HTTP2::active]} { pool http2_pool } else { pool other_pool } }
Here is the documentation for that command. It says it was implemented in 11.4.
If you have any more questions, I am sure I can help.
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