Page 1 of 1
Download file from http url?
Posted: Fri Oct 24, 2003 8:29 pm
by ricardo
I want to download a file from a server from a http url.
Which is the fast and best way to do it? If a percent of the download could be available its better.
Thanks in advance.
Note:
I found Berikco example that works great!!!
I think my question is answwered, Thanks.

Posted: Fri Oct 24, 2003 11:33 pm
by freak
It can also be done with a callback for the progress.
I made a tutorial about this here:
viewtopic.php?t=7846
As this is a bit of work to implement in your own code, i made a compact
include file for easy usage:
http://freak.purearea.net/code/DownloadUrlToFile.zip
(example included)
Explanations about the function are on the top of the include file.
Timo
Posted: Fri Oct 24, 2003 11:43 pm
by ricardo
Freak,
Thanks for your answer.
I found a problem running the code:
IB.IBinding is not found.
Problem resolved: install new version of PB!!
Your code is great!!!!!8O
Thanks

Re: Download file from http url?
Posted: Tue Nov 04, 2003 5:28 am
by PB
> I want to download a file from a server from a http url.
> Which is the fast and best way to do it?
I know you asked for a progress meter, but if you're just wanting to get
a small file off the net (say less than 50k) then this is quick and easy:
viewtopic.php?t=2035
Re: Download file from http url?
Posted: Tue Nov 04, 2003 5:37 am
by ricardo
Thanks PB but i need to download bigger files.
In the other hand, i have found that Freak code is amazing, it can even resume the download. Its fast, secure, easy and with some very nice options. 8O

Posted: Tue Nov 04, 2003 6:47 am
by RJP Computing
@freak,
It looks like you have spent some time on this example. It is awsome!
I have a related question. How can I get this to wrk behind a proxy server? I am behind one at work that you have to login to. I know this can be done but how?
Any help would be awsome.
Thanks
Posted: Fri Nov 07, 2003 7:56 am
by RJP Computing
RJP Computing wrote:@freak,
It looks like you have spent some time on this example. It is awsome!
I have a related question. How can I get this to wrk behind a proxy server? I am behind one at work that you have to login to. I know this can be done but how?
Any help would be awsome.
Thanks
@Freak,
Have you had any luck with this?
Posted: Fri Nov 07, 2003 2:10 pm
by freak
Sorry, overlooked that post...
Actually, i don't have a proxy server here, so i can't help much.
My guess is, that if you have set up the proxy settings in the Internet
Explorer preferences, then it should work.
My code is actually just built around the UrlDownloadToFile_() Api, so if
you can make it work with this one, my code should work too.
Timo
Posted: Fri Nov 07, 2003 3:57 pm
by RJP Computing
Actually it doesn't ever ask for my username and password. I do have my internet options setup right. It is something that isn't documented well because I can't find the answer anywhere.
Your function just times out.
If you think of anything it would be very helpful.
Thanks for your efforts