Web.Contents

This function retrieves the data downloaded from a specified URL in binary format. Optional parameters, referred to as options, can be provided to define additional properties. The options record can ...

Syntax

Web.Contents(url as text, optional options as nullable record) as binary.

About

This function retrieves the data downloaded from a specified URL in binary format. Optional parameters, referred to as options, can be provided to define additional properties. The options record can include the following fields: - Query: Allows for adding query parameters to the URL programmatically, without requiring manual escaping. - ApiKeyName: Used to specify the name (not the value) of an API key parameter if the target site requires one. The actual key value is provided in the credential. - Headers: If specified as a record, additional headers will be included in the HTTP request. - Timeout: If specified as a duration, changes the timeout period for the HTTP request. The default timeout is set to 100 seconds. - ExcludedFromCacheKey: If specified as a list, excludes certain HTTP header keys from being considered in caching calculations. - IsRetry: If set to true, ignores any cached response and fetches new data. - ManualStatusHandling: If provided as a list, prevents default handling for HTTP respons