开发者

Setting port in FtpWebRequest

开发者 https://www.devze.com 2023-01-21 20:38 出处:网络
I need the user to be able to be able to modifythe port for downloading FTP information 开发者_Python百科- but I can\'t find a way of changing this in FtpWebRequest.Isn\'t the port just part of the UR

I need the user to be able to be able to modify the port for downloading FTP information 开发者_Python百科- but I can't find a way of changing this in FtpWebRequest.


Isn't the port just part of the URI used to create the web request?

FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://10.0.0.1:12345");
0

精彩评论

暂无评论...
验证码 换一张
取 消