获取文件名HttpWebRequest [英] Get filename HttpWebRequest

查看:96
本文介绍了获取文件名HttpWebRequest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用HTTPRequest下载一些文件,遵循本教程http://www.geekpedia.com/tutorial179_Creating-a-download-manager-in-Csharp.html

I'm downloading some files with HTTPRequest, following this tutorial http://www.geekpedia.com/tutorial179_Creating-a-download-manager-in-Csharp.html

但是,我如何获取文件名?我需要获取文件名才能保存,因为我不知道文件的扩展名。

However, how do I get the filename? I need to get the file name in order to save it, because I don't know the extensions of the files.

 

PS:我在错误的地方提出这个问题:http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/f3be4bbb-8025-4b1f-a2dd-b1b70b071bc7

很抱歉再次提问(在正确的地方)

推荐答案

对不起,伙计们,我得到了答案:

Sorry folks, I got the answer:

http://social.msdn。 microsoft.com/Forums/en-US/csharpgeneral/thread/f3be4bbb-8025-4b1f-a2dd-b1b70b071bc7 /

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/f3be4bbb-8025-4b1f-a2dd-b1b70b071bc7/

请对,双重帖子真的很抱歉。摆脱这个。

Please, real sorry for the double post. Get rid of this.


这篇关于获取文件名HttpWebRequest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆