Results 1 to 11 of 11

Thread: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)

  1. #1

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

    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.
    Attached Files Attached Files

  2. #2
    New Member
    Join Date
    Mar 2008
    Posts
    5

    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
    Last edited by Silentone; Mar 24th, 2008 at 12:02 AM.

  3. #3

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  4. #4
    New Member
    Join Date
    Mar 2008
    Posts
    5

    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

  5. #5
    Member BladeM's Avatar
    Join Date
    Jul 2007
    Location
    Greece
    Posts
    47

    Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)

    i ll give it a try

  6. #6
    Lively Member
    Join Date
    Feb 2008
    Posts
    91

    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!

  7. #7

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  8. #8

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  9. #9
    Member
    Join Date
    Mar 2008
    Posts
    39

    Re: Ultimate Winsock Downloader (HTTP, FTP, Files > 4GB)

    Very nice man

  10. #10
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519

    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..
    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".

  11. #11
    Member
    Join Date
    Nov 2009
    Posts
    40

    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..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width