I have a simple code to download a file from URL and it worked until few months ago.
using (WebClient client = new WebClient())
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
client.Encoding = Encoding.GetEncoding("Windows-1255");
client.DownloadFile(someUrl, "Companies.csv");
}
If I enter the URL manually the file will download: CSV file URL
Why wouldn't it download via c# code?
I saw the question in C# Download file from URL but didn't seem to find my answer there.