Forum Discussion
Cynthia_18735
Nimbostratus
May 06, 2008More efficient way to get pool member status per URL using iControl?
I have a perl script that is does the following:
(1) Gets a list of WideIP's from GlobalLB/WideIP
(2) For each WideIP, gets a list of Pool names from GlobalLB/Pool.
...
May 07, 2008
That's what the eval section of the code is supposed to do. It inserts the authentication headers in the first request (if you have a new enough version of SOAP::Lite. The issue with your code is that you are adding the headers to the $Rule object and not the $WIDEIP object that you are using.
Give this a try:
$WIDEIP = SOAP::Lite
-> uri('urn:iControl:GlobalLB/WideIP')
-> proxy("$sProtocol://$sHost:$sPort/iControl/iControlPortal.cgi");
eval { $WIDEIP->transport->http_request->header
(
'Authorization' =>
'Basic ' . MIME::Base64::encode("$sUID:$sPWD", '')
); };
-Joe
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
