判断远程文件是否存在

public bool UriExists(string url)
        
{
            
try
            
{
                
new System.Net.WebClient().OpenRead(url);
                
return true;
            }

            
catch (System.Net.WebException)
            
{
                
return false;
            }

        }

原文地址:https://www.cnblogs.com/lxshanye/p/3752824.html