Forum Discussion
Nov 15, 2007
In the SOAP::Lite docs, here's the comments on the arguments to the proxy method:
When extra information is needed, it is also passed in the call to this method. Connecting to a server that uses browser cookies for authentication can be done by creating an instance of the HTTP::Cookies class (from the LWP package) and passing it as the value following a key of cookie_jar.
I did a search and found an example reference for using the cookie_jar parameter.
Give this a try:
$Failover = new SOAP::Lite
uri('urn:iControl:System/Failover')
proxy("https://$hostName:443/iControl/iControlPortal.cgi",
cookie_jar => HTTP::Cookies->new(ignore_discard => 1));
I tested this out and for subsequent requests on the same SOAP::Lite object, it did send the BIGIPAuthCookie on subsequent requests.
Let me know if this works for you and I'll work on getting the sample code upgraded to support the auth cookie.
-Joe