View Source

Use the {{setHTTPOptions}} API to set options on the unencrypted HTTP connection
{code}
########====CDP Server Configuration Start====########
#set CDP server host name
$HOST="10.230.131.25";
#set CDP server to access API
$PORT="9443";
#set CDP user
$USER="admin";
#set CDP user password
$PASS="admin";
########====CDP Server Configuration End====########

$ENABLED=TRUE;
$NEW_PORT="8082";
$MAX_CONS="80";
$RESTART="yes";
#Set the options on the unencrypted HTTP connection.
try{

$client = new soapclient("https://$HOST:$PORT/Configuration?wsdl",
array('login'=>"$USER",
'password'=>"$PASS",
'trace'=>1
)
);

$client->setHTTPOptions(array('enabled'=>"$ENABLED",
'port'=>"$NEW_PORT",
'maxConnections'=>"$MAX_CONS",
'restartWebService'=>"$RESTART")) ;

echo "Successfully executed setHTTPOptions\n";

exit(0);
}
catch (SoapFault $exception)
{
echo $exception;
exit(1);
}
{code}