Important alert: (current site time 7/16/2013 3:36:21 AM EDT)
 

winzip icon

Internet Downloader (Like Gozilla) Resume, Pause, Etc. (UPDATED - August 16) Uses Winsock.ocx Only!!

Email
Submitted on: 7/14/2000 6:28:09 AM
By: Eric Malamisura  
Level: Intermediate
User Rating: By 26 Users
Compatibility: VB 6.0
Views: 38746
author picture
(About the author)
 
     Resume's Files, Pause Files, Or anything from anywhere on the net just like GoZilla but this is open source for your hacking pleasure! =] Enjoy it!! Ok I did a complete code revamp of the code and im not finished yet. I cant seem to get the ftp stuff to work right if someone could help me out with that. It conencts to server and the server trys to send me the file but it wont come through and I cant figure out why. Help me on this one please!!! Thanks for all your wonderful support and votes by the way I really appreciate them. Well I got the reward thanks again for all the votes...By the way I have updated this again to fix a bug it has with unix servers. Pointed out to me by Michael Pauletta along with a way to fix it. Much appreciated micheal. Im glad people are still loving this code as yesterday auguest 15 it hit code of the day yet again.############################## GET THE LATEST VERSION HERE -----> http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=10926 <------------ GET THE LATEST VERSION THERE ##############################
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 5 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

7/14/2000 12:58:52 PMAnonymous

Good code.
Just a suggestion:
In a later version why don't you include support for all types of files, for the beginners out there. And as a cool feature you could add a puase/resume feature which would make it the best downloader on PSC.
Good Job, Good Luck
(If this comment was disrespectful, please report it.)

 
7/14/2000 3:20:20 PMlivinINvb

this is sweet!! if anyone has updated this to use a pause and resume button please e-mail me! cb5sdvb@hotmail.com
i give you excellent
(If this comment was disrespectful, please report it.)

 
7/14/2000 11:29:37 PMEric Malmisura

Ok I will add Pause and resume in the next version. I will try to implement them as soon as I figure out how to do it correctly. I did have a resume feature but I couldnt implement it the correct way for the file to be valid afterwards. If you have any help please email me thanks. Glad you like my code. Please do note that all the code included with this zip file is my code. Excluding various parts of PRO.BAS but I did create pro.bas also and all the functions in the zip.
(If this comment was disrespectful, please report it.)

 
7/15/2000 6:58:12 AMChristian

This is great. I must say too, if you implent a resume feature, i will vote you to heaven.

Good luck.
(If this comment was disrespectful, please report it.)

 
7/15/2000 11:33:56 AMAfshaad Patel

I get 3 msgboxes when i start to download it says False then 0 then again 0 bytes. how do i get rid of those boxes
(If this comment was disrespectful, please report it.)

 
7/15/2000 12:01:53 PMAfshaad Patel

Also another thing i wanted to know is there anyway that u can disable the download button when the user is downloading the file. I RATE THIS THING EXCELLENT !!
(If this comment was disrespectful, please report it.)

 
7/15/2000 12:17:58 PMAfshaad Patel

One more suggestion when it is finished downloading it should tell the user it is complete. and if possbile try and run the file from where it was downloaded. that would be really cool
(If this comment was disrespectful, please report it.)

 
7/15/2000 1:46:28 PMAfshaad Patel

This Code is really nice, i loved the feedback from the author i RATE IT EXCELLENT

(If this comment was disrespectful, please report it.)

 
7/16/2000 2:23:59 AMYoshman

Kick @$$ code dude.
(If this comment was disrespectful, please report it.)

 
7/16/2000 2:33:52 AMHUMBERT

It doesn't works with dynamic pages (asp, php, etc...). When i try to download ASP page, the result is a page with ASP extension, but the content isn't ASP, but simple HTML (the server simulate a request connection, and send the HTML code) !!! But it's a good jod. Thanks
(If this comment was disrespectful, please report it.)

 
7/16/2000 7:06:00 AMEric Malamisura

Yes. ASP is a scripting code used on the server side. A security feature ASP offers is that the server will never return the ASP script itself only the results of the ASP script(the html) Internet Explorer asks for the script. The server says ok he wants the script but not giving to him. It runs the script the script creates a dynamic html document and sends that instead. If you notice on planet source code all the content is dynamic and not static. It changes very often becuase the html is changed everytime you access the script. Hope that helps you out =]

(If this comment was disrespectful, please report it.)

 
7/17/2000 1:00:27 AMcornholio

To do the resume try this:
Range: bytes=XX-YY
XX and YY are both numbers, beware of both spacing and letter case, some servers are particular fussy. YY is optional, if nothing then the download will start at (XX+1) byte and will stop at the end of the download
You'll need to do some checking because the server MUST send you a :
HTTP/1.1 206 Partial content
as I understand it if it doesn't accept the resume a server will just send the 200 + OK and will send the file starting a 0. Also as your code stands now it won't work right because ir overwrites what you already have gotten.
Great code so far keep the good work.


(If this comment was disrespectful, please report it.)

 
7/17/2000 1:05:32 AMcornholio

Messed up when I copied:
Range: bytes=XX-YY


(If this comment was disrespectful, please report it.)

 
7/17/2000 1:12:33 AMcornholio

One more time there is a space between the colon - : and the word bytes.
There are no other spaces in the line.
(If this comment was disrespectful, please report it.)

 
7/19/2000 5:45:32 PMlivinINvb

its me again, if anyone thinks they can help me out, i am trying to make this have a resume file after you close the program, i thought i had it but now it won't download, if anyone thinks they can help, e-mail me
(If this comment was disrespectful, please report it.)

 
7/19/2000 6:00:20 PMEric Malamisura

LivingINvb I tested the resume for doing this and it worked fine..Now the one thing that makes this work is that you have to select the half downloaded file that you need to resume or it wont work(when you select the file) it will then ask if you wish to Overwrite, Resume, Cancel..Select resume and it should work fine.. Ive tested this many times and its worked for me each time. If i misunderstood what you are trying to do please try to explain it better.
(If this comment was disrespectful, please report it.)

 
7/19/2000 6:21:11 PMlivinINvb

never mind, i just figured it out
(If this comment was disrespectful, please report it.)

 
7/22/2000 1:24:21 AMJustin Case

I really liked this program. You should make it so that when you
launch it from the quicklaunch taskbar that it copys the address
of the program that I want to download from the clip board.
That way i could right click on a link, copy the location of
the file to the clipboard, and clik on your program's icon on
the quicklaunch taskbar. also, how about a way to set the
download directory so we don't have to chose every time. And
lastly, how about FTP support so I can uninstall Gozilla and use
your program for all my downloads with out worrying about being
spyed on. Great Program, I'll keep using it.
(If this comment was disrespectful, please report it.)

 
7/22/2000 3:53:49 AMEric Malamisura

Yeah I was thinking about adding FTP support but thats a TON of new code I would have to add and would sorta disqualify newbies out of this code but I think im going to keep this version and zip it up and call it something like pastversion.zip and then the new version will be put in zip like regular...ummm keep checking for updates!
(If this comment was disrespectful, please report it.)

 
7/22/2000 4:11:27 AMAndrew Armstrong

Hey, with your resume feature you were having trouble with... Instead of resuming right on the spot you left off, try a rollback of about 4K... Meaning, start 4K behind where u left off, to make sure u get it all :)
(If this comment was disrespectful, please report it.)

 
7/22/2000 7:13:52 AMEric Malamisura

Ok I can do that.. It works now that was at the beginning I didnt have resume at all and someone asked for it and I didnt quit know how to do it. But I will test some things with rolling it back on the upgraded version..
(If this comment was disrespectful, please report it.)

 
7/22/2000 7:24:34 AMEric Malamisura

BTW I would appreciate some votes on here if ya could! =]

(If this comment was disrespectful, please report it.)

 
7/23/2000 12:09:48 AMJustin Case

Sorry i forgot to vote. took care of it.
FTP support would be a good way to demonstrate
how to do it. Also how about keeping track of
the last 5 or 10 files that were downloaded
to make it easier to resume a download.
excellent program! I will keep checking back
for up for updates!
(If this comment was disrespectful, please report it.)

 
7/23/2000 8:12:35 PMopello

WOW! So much corresopndence! This is an awesome program and if developed further (not saying it needs it) ... but you could probably SELL IT! Oh, I have a question. Anyone know how to make a downloader compatible with JustOn ? (info: http://www.expressresponse.com/novelljo , just search for "getright") ? That would help me out TREMENDOUSLY! Thanks!
(If this comment was disrespectful, please report it.)

 
7/25/2000 1:11:41 AMD.Æ

Excellent Job. Keep up the good work Eric! Excellent Vote Added!
(If this comment was disrespectful, please report it.)

 
7/25/2000 1:46:53 PMMikeB

I cannot get my own source code or yours to work using Win2000. It makes the connection, sends the GET, but no data arrival. 8(
(If this comment was disrespectful, please report it.)

 
7/26/2000 4:29:04 AMNova

Eric I definately voting for you my Man! This is excellent code, just what I was looking for, although I had a bit of trouble downloading binary files - specifically .gifs. Oh well, it's still a kick arse program! Pause, Resume, Pause, Resume, Pause, Resume! Ye-hee Yeeah!
(If this comment was disrespectful, please report it.)

 
7/26/2000 1:15:03 PMEric Malamisura

I fixed a few bugs in it already but havent posted it or anything yet.. The problem was I was opening and closing the file everytime It recieved a chunk..I decided that was to much overhead processing and it was a bit sloppy so I did it a bit different for the next release. I'll post next release once I get the ftp working correctly on it..
(If this comment was disrespectful, please report it.)

 
7/27/2000 11:46:43 PMRandy

Hi, When you update will you update this submission? Like if I bookmark
(If this comment was disrespectful, please report it.)

 
8/4/2000 6:28:17 AMKayHan

very sucessfull but needs improvments..I took ıt and added it some functions like pause and stop and some others. It will be on PSC soon.
(If this comment was disrespectful, please report it.)

 
8/4/2000 8:38:25 AMEric Malamisura

It has pause and stop on it..What do you mean?

(If this comment was disrespectful, please report it.)

 
8/7/2000 9:05:46 AMProgramDude

its great!if it is possible with vb, can you add a feature so it monitors clicks from IE?it would also be much appreciated if you could tell me how to do this (if you know how). ** THIS IS THE BEST VB DOWNLOADER THAT** I'VE SEEN!
(If this comment was disrespectful, please report it.)

 
8/7/2000 9:06:07 AMProgramDude

its great!
(If this comment was disrespectful, please report it.)

 
9/8/2000 6:02:00 PMmuz

Excellent program - is there a way you can download files from lots of different url's - input lots of url in a file and it downloads them one after the other.
(If this comment was disrespectful, please report it.)

 
3/7/2002 8:28:50 AMKaustubh

It doesn't integrate with browser clicks
Please suggest how to do it...
(If this comment was disrespectful, please report it.)

 
2/2/2003 8:49:25 AM3M Info Sys

i cant download ur application. what is the reason? any other site, where the application is avble for downloading...
(If this comment was disrespectful, please report it.)

 
10/26/2003 11:37:50 PMNHGames

Wow this is the best download i seen made in vb so far i rate it Excellent
(If this comment was disrespectful, please report it.)

 
2/17/2005 11:14:27 PM

I can't download a binary file like a
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.