/// <summary>
/// 判断远程图片是否存在
/// </summary>
/// <param name="curl">远程图片地址</param>
/// <returns></returns>
private int GetUrlError(string curl)
{
int num = 200;
if (this.method == 1)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri(curl));
ServicePointManager.Expect100Continue = false;
try
{
((HttpWebResponse)request.GetResponse()).Close();
}
30
2013
03
C# 判断远程图片和文件是否存在
发布:郑德才博客 | 分类:学习之路 | 评论:1 | 浏览: