views:

54

answers:

2

As I understand it, the FTPWebRequest.Proxy property denotes an HTTP proxy. I have to issue FTP requests to an external server via an FTP proxy.

The only way I've got this to work so far is by creating a script which uses the Windows FTP command and downloading that way.

Is it possible to use the FTPWebRequest to download files via an FTP proxy?

+1  A: 

If you have the budget for it - Dart do some great classes for this:

http://www.dart.com/ or specifically http://www.dart.com/ptftpnet.aspx

DaveHogan
I'm not sure I'd be able to swing it, but it does look like a decent solution. Reading their site also suggests its simply not possible to use an FTP Proxy with what is provided in the .NET CLR.
Joel Goodwin
A: 

They claim it is possible to list, listdetails, and download through a proxy. However I could not get this to work with an isa firewall. So I disabled the default proxy in my app.config and added an application rule for ForeFront/ISA client. To do this I created a file c:\programdata\microsoft\firewall client 2004\application.ini with the contents:

[applicationName] DisableEx=0 Disable=0 NameResolution=R

where applicationName is the running exe minus the .exe extension.

csaam
I believe that's referring to an HTTP proxy rather than an FTP proxy.
Joel Goodwin