如何在C#中为WebClient设置端口? [英] How to set port for webclient in c#?

查看:324
本文介绍了如何在C#中为WebClient设置端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用c#中的webclient下载文件.

I am trying to download a file using webclient in c#.

文件位置的远程端口是20114.如何告诉Webclient使用20114端口?

the remote port of the file location is 20114. How do I tell webclient to use 20114 port?

推荐答案

将网址设置为 http://www.website.com:20114/folder/file.ext

这篇关于如何在C#中为WebClient设置端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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