1 Attachment(s)
Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
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. :p
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.
Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
Very nice man
Would you mind if i used yours as a base?
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
Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
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. :)
Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
Ive probally done it wrong,
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?
Thanks
Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
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!
Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
Quote:
Originally Posted by macbrutal
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.
Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
Quote:
Originally Posted by Silentone
Ive probally done it wrong,
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/
Quote:
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.
Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
DigiRev,
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..
Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)
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..
;)