Alaska Software Inc. - LoadFromURL with TimeOut parameter
Username: Password:
AuthorTopic: LoadFromURL with TimeOut parameter
Jose Adriano Baltieri LoadFromURL with TimeOut parameter
on Tue, 02 Jan 2007 08:54:05 -0300
Hello !

A need a version of LoadFromURL with a TimeOut parameter.

Say that I need a page to be retrieved at 30 seconds, at most.

Cant wait 5 minutes (the default LoadFromURL timeout) to have the execution 
leaving the function.

Any ideas ?

Have seen Phil Ide's LoadFromURL version but it hasn't that timeout either.

Thanks in advance !
Günter Beyes Re: LoadFromURL with TimeOut parameter
on Tue, 02 Jan 2007 13:36:06 +0100
Hello José,

> A need a version of LoadFromURL with a TimeOut parameter.
> Have seen Phil Ide's LoadFromURL version but it hasn't that timeout either.

building upon Phil's LoadFromURL source, try InternetSetOption() from
wininet.dll, in particular its INTERNET_OPTION_CONNECT_TIMEOUT and
INTERNET_OPTION_SEND_TIMEOUT options, on the session handle returned from
InternetOpen().

With best wishes for a happy new year,

Günter
Jose Adriano Baltieri Re: LoadFromURL with TimeOut parameter
on Fri, 05 Jan 2007 11:37:34 -0300
Günter Beyes wrote:
> Hello José,
> 
>> A need a version of LoadFromURL with a TimeOut parameter.
>> Have seen Phil Ide's LoadFromURL version but it hasn't that timeout either.
> 
> building upon Phil's LoadFromURL source, try InternetSetOption() from
> wininet.dll, in particular its INTERNET_OPTION_CONNECT_TIMEOUT and
> INTERNET_OPTION_SEND_TIMEOUT options, on the session handle returned from
> InternetOpen().
> 
> With best wishes for a happy new year,
> 
> Günter

OK. I thought about Phil's implementation.

What about Phil implementing it himself ?

Phil, RUT (Are You There ?)
Phil Ide
Re: LoadFromURL with TimeOut parameter
on Fri, 05 Jan 2007 15:10:20 +0000
Adriano,

>> building upon Phil's LoadFromURL source, try InternetSetOption() from
>> wininet.dll, in particular its INTERNET_OPTION_CONNECT_TIMEOUT and
>> INTERNET_OPTION_SEND_TIMEOUT options, on the session handle returned from
>> InternetOpen().
>> 
> OK. I thought about Phil's implementation.
> 
> What about Phil implementing it himself ?
> 
> Phil, RUT (Are You There ?)

Yes, I'm here. Very overworked at the moment though, so can't say when I can
implement this.

Regards,

Phil Ide

---------------------
www.xbhcl.com
www.pbih.eu
www.idep.org.uk/xbase
---------------------
I will make it clear that I _do_ know the meaning of the word "mercy";
I simply choose not show them any.
          [Things I'd do as an Evil Overlord]
Jose Adriano Baltieri Re: LoadFromURL with TimeOut parameter
on Wed, 10 Jan 2007 11:03:17 -0300
Phil Ide wrote:
> Adriano,
> 
Hi Phil !


> Yes, I'm here. 

Glad to know your're still there !

> Very overworked at the moment though, so can't say when I can
> implement this.

OK. I have done a very rudimentar LoadFromURL for my purposes here.

Hope you'll think about the timeout idea for the next LoadFromURL version...


> Regards,