SetAuthorizationKey

Revision as of 17:34, 30 June 2025 by Lchrisman (talk | contribs) (Created page with "category:Integration Functions ''New to Analytica 6.6'' == Function _SetAuthorizationKey( urlPrefix, authorization ) == Many web services or other HTTP sources requ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


New to Analytica 6.6

Function _SetAuthorizationKey( urlPrefix, authorization )

Many web services or other HTTP sources require that an authentication header to grant access or use. There is a standard HTTP header named Authentication used for this purpose.

This function informs Analytica of an authorization value that must be used for any URL that starts with «urlPrefix». When Analytica accesses a URL with that prefix, it will automatically insert the Authorization header with the indicated «authorization» value (except in the case where you have specified an Authorization header in that context, in which case yours would override the one remembered by this function).

In some cases, such as when calling ReadFromURL, this can reduce the extra require parameters. In other cases, there might not be any other mechanism for specifying the HTTP headers.

See Also

Comments


You are not allowed to post comments.