Set redirect HTTPS

				
					StructOperationResponse WebHostingVhostUpdate(string $IDsession, string $id, string $action, array $params)
				
			

Enable or disable automatic HTTPS redirection.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “SetRedirectHTTPS”.
  • params array
    {“fqdn”: fqdn of the vhost, “value”: “on” / “off”}.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("fqdn" => "test.wordpress.netim.com",
         "value" => "on");
 
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingVhostUpdate($idSession, "NW1024", "SetRedirectHTTPS", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}