![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(PowerBuilder) Setting a Maximum Response SizeThe MaxResponseSize property protects your spider from downloading a page that is too large. By default, MaxResponseSize = 0, which indicates that there is no maximum. You may set it to a number indicating the maximum number of bytes to download. URLs with response sizes larger than this will be skipped.
integer li_rc oleobject loo_Spider loo_Spider = create oleobject // Use "Chilkat_9_5_0.Spider" for versions of Chilkat < 10.0.0 li_rc = loo_Spider.ConnectToNewObject("Chilkat.Spider") if li_rc < 0 then destroy loo_Spider MessageBox("Error","Connecting to COM object failed") return end if loo_Spider.Initialize("www.chilkatsoft.com") // Add the 1st URL: loo_Spider.AddUnspidered("http://www.chilkatsoft.com/") // This example demonstrates setting the MaxResponseSize property // Do not download anything with a response size greater than 100,000 bytes. loo_Spider.MaxResponseSize = 100000 destroy loo_Spider |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.