Can you automate an FTP?

  • Thread starter Thread starter James Johnson
  • Start date Start date
J

James Johnson

Dear C#dex,

You can automate a POST and interrogate the resulting HTTP stream using
code such as:

HttpWebRequest hwreq = (HttpWebRequest)WebRequest.Create(url);
hwreq.Method = "POST";
hwreq.ContentType = "application/x-www-form-urlencoded";
hwreq.ContentLength = buffer.Length;
hwreq.Proxy = new WebProxy("Gloriadias", true);
hwreq.CookieContainer = new CookieContainer();
Stream RequestStream = hwreq.GetRequestStream();

Is it possible to automate an FTP request such that you copy a web page
to a web site automatically using a known FTP login?

Thanks,

James J.
 
I would guess you can make the URL for WebRequest.Create ftp, and then get
rid of the method, contenttype and contentlength?
 
Hi,

No AFAIK, There is no support for ftp in the framework, you could search
for a third party component though. take a look at the archive as several
have been posted in the past.

cheers,
 
try wrapping ftp.exe with process.start and use a command script -s option

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 
Is it possible to automate an FTP request such that you copy a web page
to a web site automatically using a known FTP login?

I don't believe it's possible natively with the current .NET Framework.
However, there are several excellent 3rd party components such as Chilkat's
FTP which will do exactly what you require...
 
Well, if you want a 100% managed implementation, we offer Xceed FTP
for .NET.

Tomorrow, we will be releasing v2.0, which adds support for
asynchronous (non-blocking) calls, and Secure FTP via SSL.

Take care.

The URL is http://www.xceedsoft.com/products/ftpnet

AL

I don't believe it's possible natively with the current .NET Framework.
However, there are several excellent 3rd party components such as Chilkat's
FTP which will do exactly what you require...

--
Alex Leblanc
Xceed Software Inc.
http://www.xceedsoft.com

Check out our advanced .NET zip file and compression library

Email: (e-mail address removed) (remove the first 'x')
 
Back
Top