2021年1月29日

下载文件

摘要: //添加地址 HttpWebRequest requestUrl = (HttpWebRequest)WebRequest.Create(url); requestUrl.Method = "GET"; requestUrl.Accept = "text/html,application/xhtml 阅读全文

posted @ 2021-01-29 11:27 透明的鱼! 阅读(184) 评论(0) 推荐(0)

下载文件所对应的的 Content-type类型

摘要: 图片: Content.Headers.ContentType = new MediaTypeHeaderValue("image/png"); 视频: Content.Headers.ContentType = new MediaTypeHeaderValue("video/mp4") .docx 阅读全文

posted @ 2021-01-29 11:26 透明的鱼! 阅读(4922) 评论(0) 推荐(1)

导航