fetch_url.ps1 should support cookies
%PLESK_DIR%\Additional\Scheduler\fetch_url.ps1 script should support cookies.
Currently, if a URL, you fetch with it, sets a cookie (and tries to read it back ? - not sure about this part tho), it fails due to the $webRequest object not having a CookieContainer.
Just add two lines into the script before calling GetResponse():
$cookieContainer = New-Object -TypeName 'System.Net.CookieContainer'
$webRequest.CookieContainer = $cookieContainer
Thank you for your input. We will consider this functionality in upcoming releases if it is popular. Everyone, please continue voting for this feature if you consider it important.