Datasnap.DSHTTPClient.TDSHTTP.SetAuthentication

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetAuthentication(const user: string; const password: string);

C++

void __fastcall SetAuthentication(const System::UnicodeString user, const System::UnicodeString password);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Datasnap.DSHTTPClient.pas
Datasnap.DSHTTPClient.hpp
Datasnap.DSHTTPClient TDSHTTP

Description

Uses the HTTP standard authentication protocols with the given credentials.

SetAuthentication adds the given user and the password credentials to the local credentials storage.

The following table shows the significance of the parameters.

Parameter Description

user

The user name to encode for Authorization.

password

The password to encode for Authorization.

See Also