Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FtpWebRequest and proxy

Status
Not open for further replies.

serializer

Programmer
Joined
May 15, 2006
Messages
143
Location
SE
I am using the Microsoft example to upload a file:

This works when connecting to an ftp without proxy. When I connect to a server through an ftp proxy it does not work.

The proxy is an ftp proxy with port 21. I have tried connecting with CuteFTP and it works specifyn the proxy address and port.

When specifying the WebProxy to the request and connecting using the example on the MS-page I get this error:

The requested FTP command is not supported when using HTTP proxy.

It is an ftp proxy and I specify and ftp proxy in CuteFTP (and it works there). It seems like it doesn't try even to connect to the proxy because I get the same error when writing any other host as a server. Shouldn't I use the proxy property? Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top