标签: webclient downloadfile
如果响应标头中的文件名:
Content-Disposition: attachment;filename=ABC.txt
我怎样才能得到它并使用它保存文件?
using (WebClient Client = new WebClient ()) { Client.DownloadFile("http://www.abc.com/file/song",path+"filename"); }