libURL HTTP downloading
Sivakatirswami
katir at hindu.org
Sun Aug 9 01:32:04 EDT 2009
Phil Davis wrote:
> Thanks Trevor! I hadn't thought of downloading in a loop. Good call.
> I'm working with a training system too, where all the media is on a
> server. I really appreciate the feedback (from everyone).
>
> Phil
>
>
> Trevor DeVore wrote:
>>
>> I had some training software that would download all of it's media
>> from a server. The amount of media varied from course to course but
>> there was a lot of it. Mostly still images but there were a number of
>> videos as well. libURL worked great. The only thing I remember
>> accounting for was timeouts. I would always download a url in a
>> repeat loop. If there was no error then exit. If the error was
>> timeout then try again, up to 3 - 5 times. I think I picked up this
>> trick from Chipp.
>>
>> Regards,
>>
> as for larger files: Andre wrote a downloader into our Hinduism Today
> Navigator (previously name Hinduism Today Digital Edition) it has to
> download 4 PDF's which total over 30 MB or a single PDF which might be
> around 28 MB.. he also has some logging in there and we can see the
> failures and the re attempts for any given user in his dbase record.
> One man had our rev client opened at around 8 am in India.. .he
> clicked to download.. must have some horrible old 28K modem. but
> after about 80 retries, the PDF finally landed on his hard drive at
> about 4 pm in the afternoon. I thought "wow, 8 hours our stack never
> gave up... libURL is pretty robust!" (if you code it right of course.)
> and I also had to hand it to the old codger (an elderly man with a PC
> and no rupees) for not giving up but just letting our application run
> and run and run. He was so happy to open the PDF that afternoon, one
> small victory for our favorite tool box. So, Phil PWC Proceed with
> Confidence.
More information about the use-livecode
mailing list