asp.net 采集图片,如果破解防盗链?
1 /// <summary>保存图片 2 /// </summary> 3 /// <param name="picUrl"></param> 4 /// <returns></returns> 5 public int SavePic(string picUrl) 6 { 7 System.Net.WebClient webClient = new WebClient(); 8 9 System.Uri uri = new Uri(picUrl); 10 int len = uri.Segments.Length; 11 webClient.BaseAddress = "http://www.imanhua.com/comic/55/list_68637.html"; 12 webClient.DownloadFile(uri, "E:\\" + uri.Segments[len - 1]); 13 webClient.Dispose(); 14 return 1; 15 }
这样写好像破解不了呢……