JDownloader Community - Appwork GmbH
 

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 21.03.2020, 17:48
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by Heinz View Post
Is there any timeout possible for the getPage request?
Like if the page is not loaded after 10sec it should skip the request.
Connect/read timeout appears to be working fine. Had you tried this way?

Code:
var br = getBrowser();
br.setConnectTimeout(100);
br.setReadTimeout(100);
var page = null;

try {
    page = br.getPage("http://www.google.de/");
} catch (e) {}

alert(page);

In the above example, you can see that iIf you use a very low timeout, it will return 'null'.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 13:08.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.