3
A
回答
6
还有就是System.Net.HttpRequest类:
提供WebRequest类的HTTP特定的实现。
- 命名空间:System.Net
- 集:System(在System.dll中)
您也可以使用System.Net.WebClient类:
提供了通过URI标识的资源发送数据和接收数据的常用方法。
- 命名空间:System.Net
- 集:System(在System.dll中)
这个类简化了一些常见的任务,如下载文件(方法DownloadFile
)
WebClient类提供发送数据的常用方法 或接收来自任何本地,内部网或互联网的数据的 由URI标识的资源 。
WebClient类使用 WebRequest类来提供对 资源的访问。 WebClient实例可以通过任何WebRequest 子孙登录 WebRequest.RegisterPrefix方法访问数据。
相关问题
- 1. Php Soap Server检索vb WinHttp.WinHttpRequest
- 2. winhttp.winhttprequest.5.1带进度条
- 3. WinHttp.WinHttpRequest向内容添加型
- 4. websetup in .net
- 5. aspnet_regsql in .net 3.5?
- 6. MessageBox in c#.net
- 7. MCRYPT in .Net
- 8. ctl00_CPHContent in .net
- 9. JABSORB fixup in .NET
- 10. Array.Join in .Net?
- 11. Console.Write in .Net Core
- 12. Parallel.ForEach in .NET 4.0
- 13. Tinymce in .Net
- 14. html scrape in .net
- 15. OpenGL Wrapper in .Net
- 16. JasperReports in .Net over IKVM
- 17. Apache Commons IO in .Net
- 18. mongodb orm/odm in .net?
- 19. EPPLus in VB .net 2013
- 20. 固定块in .net
- 21. win32 dll in C#.net
- 22. 如何从WinHttp.WinHttpRequest对象解析xml?
- 23. 使用WinHttp.WinHttpRequest.5.1下载进度
- 24. .net core&.net framework in the same team
- 25. Async In Targeting .NET 4.0方法
- 26. sonnet for .net 4 in ccnet
- 27. facebook like notificaton system in mvc2.net
- 28. 其中DbContextTransaction in .Net Core
- 29. WebBrowserControl in c#.net-Alternative Soution
- 30. .net post form in code behind
谢谢!我想我会使用WebClient类来上传文本文件。我为上传创建了一些代码,它似乎在上传文件,因为UploadFile方法执行时没有任何异常,但我仍然需要找到文件上传的位置。有任何想法吗? – 2008-12-30 13:30:39