I am trying to download a webpage in C# but it is giving 403 Forbidden Error.
URL: https://www.sec.gov/Archives/edgar/data/1012968/000175272422189567/0001752724-22-189567.txt
Code:
using (System.Net.WebClient wc = new System.Net.WebClient())
{
try
{
wc.DownloadFile(webURL, filePath);
}
catch (System.Exception ex)
{
// check exception object for the error
}
}