O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

17.5. Handling FTP Transactions

It is a little known fact that System.Net.WebClient can handle FTP connections too. Most people mean HTTP transactions when they refer to the Web, and in a sense, that makes the WebClient name a bit misleading. The FTP support this class offers is limited in that it only supports passive FTP connection. Passive FTP mode is the default for many clients; it means that the client connects to the server and is then given a new address and port to connect to. Active mode, where the server connects back to the client, is not supported by the WebClient class. FTP is an ancient protocol, and it has been long known to have some security issues. For one thing, the credentials are sent with no encryption over the network, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required