Link to home
Start Free TrialLog in
Avatar of awabid
awabid

asked on

Downloading HTML pages from internet

Hi pals,
I am working on a small project which consists of making a download manager. I have broken the software in three parts. (i) Downloading jpgs and bmps, (ii) Downloading zip files (iii) Downloading HTML pages. I have successfully completed the first two parts, by receiving the header of the jpegs, and zips, but in HTML, the header turns out to be zero. The flaw in my code is that it downloads the entries which are resumeable, break them in eight sections and downloads section wise. I am very much confused how to proceed in HTML download. Kindly send me a quick small code, which can download HTML files. The code should be independant from any such ocx or dll which is not easily available or is shareware, coz I can not afford to spend money on this learning project. With this I offer you to send me emails if you want to get the source code of the rest of the download manager.

Wish you happy programming :)

A W Abid
Avatar of vinnyd79
vinnyd79

ASKER CERTIFIED SOLUTION
Avatar of aelatik
aelatik
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> With this I offer you to send me emails if you want to get the source code of the rest of the download manager.

I would like to look at the source for your download, what e-mail address should I sent the request to?

Dang123
I modified Urldownloadtofile to manage file names dinamically. You could see it as part of

http://www.angelfire.com/realm/vb-shared/DownAllImg.htm

By the way, that API let you download all files not only HTML ones.
Chees
mozzarella?
Avatar of awabid

ASKER

My email address is awabid@hotmail.com please send me the mail with the subject DOWNLOAD MANAGER. Praying to God that u like the way ...lolz

Happy Programming :)
 
A W ABid
Awabid,

personally I would strongly suggest not to use URLDownloadToFile API if you want to create a professional download manager.

Reason : Proxy...

this API runs with your Internet Explorer settings. Now I have a system setup where Internet Explorer is set to check pages from my Internal Server (websites designed), and I use MYIE for browsing...

any program using URLDownloadToFile will fail, as the address will not be available on my local server...

where as something like GetRight will give me an option to use use whatever I want, may it be a proxy or no proxy.. WinSock is really the only way to do it.

http://www.vbip.com/winsock/winsock_http_01.asp
Avatar of awabid

ASKER

Hi Pals,
thank you so much for your kind support. I kept this question open for few days if anybody can pour in, and a couple of good ideas are there. To be true i am really confused, whom answer should be accepted and whom should be rejected. Nevertheless you can see the result.

Happy typing :)

A W Abid
Avatar of awabid

ASKER

By the way, i got the results from the accepted answer, but there were few more things which should be clarified. And it worked :) Everybody good job done!!!

Happy lunch :)

A W Abid