DeleteUrlCache function

From StealthBot Wiki Backup
Revision as of 08:20, 1 December 2017 by Davnit (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The DeleteUrlCache function is provided by the Script Support Class to StealthBot to expose the DeleteUrlCacheEntry() API function to scripting.

Development

The DeleteUrlCache function was added in version 2.7 as suggested by Jack.

Documentation

'// DELETEURLCACHE
'// Mirror function for the Windows API DeleteUrlCacheEntry() function
'// Call before using PrintURLToFile() to clear any residual IE cache entries for
'//     the URL you're retrieving
Public Sub DeleteURLCache(ByVal sURL As String)

    DeleteURLCacheEntry sURL

End Sub

Summary

This function calls the API function DeleteUrlCacheEntry in order to delete the URL cache for the specified URL. Call this before calling the PrintUrlToFile function to avoid potential errors.

Syntax

DeleteUrlCache URL

Arguments

  • sURL is the URL to remove cached entries for.

Examples

  • Download some file to your bot folder wihtout caching.
  • sUrl = "http://stealthbot.net/sb/bnls.php"
    DeleteUrlCache CStr(sUrl)
    PrintUrlToFile "bnls_servers.txt", CStr(sUrl)
    

See also