http WorkOffline property
Return to Introduction  Previous page  Next page
Applies to
WinHTTP component.  

property WorkOffline: Boolean;  

The WorkOffline property controls whether you would like to browse the Web data offline, and read cached pages even if user are disconnected from Internet.  
If requested file is not available for offline reading, the WinHTTP component will try to connect the remote host to download data from the Web. If user is disconnected, OnHostUnreachable event will occurs.  
This feature is the same as "Work Offline" option of the MS Internet Explorer. All requested data will be read from cache instead of downloading files from the Web.  

iiinfo The WorkOffline property works even if caching features is disabled (even if coAlwaysReload value of CacheOptions is True).  

See also

CacheOptions property;  
OnDone and OnHostUnreachable events.