Hi,
As Henrik noted could be authentication related.
We get this sort of error for High Security Sites using the HTTP Task:
--- snip ---
Exception in Task: System.Exception: Unhandled errors
Error getting HTTP response: The underlying connection was closed: An unexpected error occurred on a send.
--- snip ---
If you are trying a secure site, and your level of comfort, perhaps try a Powershell Task to Check.
Create a task and paste in the powershell below.
Basically this just ignores Certificate Errors to try to maximise the chances of it working.
Just replace "*** your website here ***" below with your site.
If you *know* the site is TLS 1.2 then you can uncomment the security protocol line below.
Otherwise if you aren't sure leave it commented out 😉.
---
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
}
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
# [System.Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest "https://*** your website here ***" -UseBasicParsing
---