Table of Contents

TTMSMCPCloudBaseRequest.AddBasicAuthHeader Method

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

API unit family: TMS.MCP.CloudBase Declaring type: TTMSMCPCloudBaseRequest

Syntax

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

Parameters

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

Returns

The newly created TTMSMCPCloudBaseRequestHeader containing the Authorization field.