Please find the code snippet here below as the below error is displaying while executing the script. Exception calling "ReadToEnd" with "0" argument(s): "The operation has timed out."
code snippet :
$request = [System.Net.HttpWebRequest]::Create($Uri)
$request.Headers["X-MC-MAC"] = $MAC
$request.Headers["X-MC-Nonce"] = $Nonce
$request.Timeout = 10800000
$request.KeepAlive = $false
$request.ProtocolVersion = [System.Net.HttpVersion]::Version10
$request.ServicePoint.ConnectionLimit = 1;
$response = $request.GetResponse()