FTP, HTTP file transfers

  • Thread starter Thread starter Joe_Black
  • Start date Start date
J

Joe_Black

Hi all,

I am writing a windows forms app that I want to connect to our equipment
over an ADSL connection, this equipment contains data that I wish to
download. Which, in your opinions, is the best route to go to transfer
this file:

FTP, I have read that this can be unreliable, and needs a lot of coding
to make robust. a third party component is not an option.

HTTP, haven't been able to find a great deal of info on this when I have
searched google

Our own protocol using sockets, ie a request packet followed by the data
in pieces, this would then be saved to a file once transfer is complete.

If FTP or HTP is best could some one direct me to a place where I can
find more info.

As ever your help is greatly appreciated.

Joe
 
Downloads and uploads over http can be accomplished using the WebClient
class.

There are examples in MSDN showing how to do both.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
a third party component is not an option.

Why is being able to get your task accomplished today, and working
perfectly and reliably, not an option?

Alex

Hi all,

I am writing a windows forms app that I want to connect to our equipment
over an ADSL connection, this equipment contains data that I wish to
download. Which, in your opinions, is the best route to go to transfer
this file:

FTP, I have read that this can be unreliable, and needs a lot of coding
to make robust. a third party component is not an option.

HTTP, haven't been able to find a great deal of info on this when I have
searched google

Our own protocol using sockets, ie a request packet followed by the data
in pieces, this would then be saved to a file once transfer is complete.

If FTP or HTP is best could some one direct me to a place where I can
find more info.

As ever your help is greatly appreciated.

Joe

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

Check out our advanced .NET grid and SmartUI controls

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