Page 1 of 1

InternetReadFile Solution Required

Posted: Wed May 28, 2008 8:31 am
by Dale
I am writing a software that downloads a lot of links from the web, to do this I am using InternetReadFile. Everything works great but occasionally the program is halted for a long time by a stubborn website. Is there any way to create a time out so that InternetReadFile will quite trying to download a website if its taking too long.


Many thanks in advance,
Dale.

Posted: Wed May 28, 2008 1:04 pm
by AND51
You can try it with ReceiveHTTPFile(), to see, if this command works better.

Another possible solution is to create your own procedure that provides a timeout. You may have a look at the PB-forums, AFAIK there are some good procedures.

Posted: Wed May 28, 2008 1:06 pm
by eesau
Perhaps this helps?