more of an aspiration than a claim

Configuring .NET FTPS in FtpWebRequest to Ignore the Proxy Settings

Here are some tips on how to configure FTPS for .NET using the FtpWebRequest object and ignore a proxy.

By default the proxy settings are picked up from your account’s IE proxy configuration.

In .NET 2.0 + I tried the following code and it seems to work:

ftpWebRequest.Proxy = new WebProxy();

.NET 1.1 had the following method which was deprecated:

ftpWebRequest.Proxy = GlobalProxySelection.GetEmptyWebProxy();

FTPS didn’t appear to work over the proxy for me. I got the error message “SSL cannot be enabled when using a proxy”. I assume Microsoft intentionally meant this to happen as FTPS is meant to be a point to point protocol. I didn’t find any documentation to confirm this though.