Need to download files from a web server? Or FTP server? Want to be able to download files greater than 4GB in size? Look no further.
Winsock Downloader Control v1.0.0 (BETA)
I have been working on this the past few days. And it seems to be working fine now. Realize that, it is a BETA version, so if you have any problems let me know and I'll fix them.
I have only tested it on a few different web servers and FTP servers.
Some features:
Download via HTTP or FTP (Passive mode)
Download files greater than 4GB in size
Support for HTTP redirects
MaxRedirects property to prevent infinite redirect loops
UserAgent property so you can set your own HTTP UserAgent
Download multiple files simultaneously by using an array of these controls
Calculates transfer speed (bytes per second) for you
So just add this control to your form and there's not much else you need to do. I included a small sample project with it.
Please let me know what you think and report any bugs.
I am wanting to connect it to a server i own and for it to download contents of the directory automatically, And if a new file is added it downloads it, Making it check to see if you already have that file.
Also how it pops up with the Save menu, Ive taken it out and changed a few things but it doesnt create the file, Any ideas?
Sorry for all the noob questions
Thanks
Last edited by Silentone; Mar 24th, 2008 at 12:02 AM.
Hey silent. If it's not creating the file then that means there was an error. Double-click my control on your form to use the events (DownloadError, etc) to see what's going on. Post the error number and the description if there is one.
If you want, you can also attach your project here that has my control in it and I'll take a look.
Basically instead of the ShowSave that pops up i just want to set it to a folder within where the project is. /projecthere/content, So i want to download it to the content folder
I think im in too far over my head, Also can you modify the ftp to download the whole contents of a folder?
I've tried it on my own FTP, worked really really good! I'm excited!
Can you make it avaible for uploading files ? Would be awesome! Thanks for the zip!
I've tried it on my own FTP, worked really really good! I'm excited!
Can you make it avaible for uploading files ? Would be awesome! Thanks for the zip!
Thanks mac.
Yes I suppose I could try that, but this is mainly a download control. I may add it in the next update though.
Basically instead of the ShowSave that pops up i just want to set it to a folder within where the project is. /projecthere/content, So i want to download it to the content folder
You need to set the save path to a file, not a folder, ex:
/projecthere/content/file.something
NOT
/projecthere/content/
Originally Posted by Silentone
I think im in too far over my head, Also can you modify the ftp to download the whole contents of a folder?
Thanks
As it is now, it cannot download a whole folder at once. You would need to have the list of files on the FTP server and either download them one at a time or use an array of my controls and make each one download a file at the same time. You would have to either know the names of the files on the server or use something like the Inet or Winsock controls to get a list of files.
Wondering if you could help me out a bit and save me some time..
I am able to connect and get to a point where it says "Receiving file..." but after minute or two I get a message saying "Error opening data connection!"
My assumption was that the receiving message meant the connection was made. More over, I am able to connect through a web browser using the same credentials. So I know the connection is good. What does that error opening data connection mean specifically? Bad port, username, etc..
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
You rock ! Dude, Can you just post here the code or zipped project that just download the files via http? Coz I wanna make a little update program..
Hope you can help me..