Table of Contents

TTMSFNCCloudBaseRequestResult.AddBasicAuthHeader Method

Adds an HTTP Basic Authorization header using Base64-encoded credentials and returns the created header object.

API unit family: TMSFNCCloudBase Declaring type: TTMSFNCCloudBaseRequestResult Inherited from: TTMSFNCCloudBaseRequest

Syntax

function AddBasicAuthHeader(const AUserName: string; const APassword: string): TTMSFNCCloudBaseRequestHeader;

Parameters

Name Description
AUserName The username for Basic authentication.
APassword The password for Basic authentication.

Returns

The newly created TTMSFNCCloudBaseRequestHeader containing the Authorization field.