InternetReadFile Solution Required

Just starting out? Need help? Post your questions and find answers here.
Dale
New User
New User
Posts: 4
Joined: Wed May 28, 2008 8:20 am

InternetReadFile Solution Required

Post 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.
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post 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.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Post by eesau »

Perhaps this helps?
Post Reply