Thanks Utima that was the problem, I changed my script to this (which gets the list of active torrents back). Code is powershell $port = "80" $server = "server" $user = "Guest123aHjp87dw" $pass = $null $utorrentUrl = "http://$server`:$port/gui/" $webClient = new-object System.Net.WebClient $webClient.Headers.Add("user-agent", "PowerShell Script") $webClient.Credentials = new-object System.Net.NetworkCredential($user, $pass) $result = $webClient.DownloadString($utorrentUrl + "token.html") [string]$cookies = $webClient.ResponseHeaders["Set-Cookie"] if ($result -match ".*<div[^>]*id=[`"`']token[`"`'][^>]*>([^<]*)</div>.*") { $token = $matches[1] $webClient.Headers.Add("Cookie", $cookies) $result = $webClient.DownloadString($utorrentUrl + "?list=1&token=" + $token) }