Roassetfetcher – BrightSign Object Reference Manual (FW 5.1) User Manual
Page 173

165
roAssetFetcher
This object contains functions for downloading files to the pool.
Object Creation: The roAssetFetcher object must be passed an
CreateObject("roAssetFetcher", pool As roAssetPool)
Example:
Pool = CreateObject("roAssetPool", "pool")
Fetcher = CreateObject("roAssetFetcher", Pool)
The ifAssetFetcher interface provides the following:
•
GetFailureReason() As String: Returns an error string if an roAssetFetcher method has failed (this is
usually indicated by returning False). The error string may help diagnose the failure.
•
SetUserAndPassword(user As String, password As String) As Boolean: Sets the default user and
password strings to be used for all download requests that are not otherwise marked using the following attributes:
•
EnableUnsafeAuthentication(enable As Boolean) As Boolean: Supports basic HTTP authentication if
True. HTTP authentication uses an insecure protocol, which might allow others to easily determine the password.
The roAssetFetcher object will still prefer the stronger digest HTTP if it is supported by the server. If this method is
False (which is the default setting), it will refuse to provide passwords via basic HTTP authentication, and any
requests requiring this authentication will fail.