Datasnap.DSHTTPClient.TDSHTTP.SetAuthentication

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DSHTTPClient.pas
Datasnap.DSHTTPClient.hpp
Unit: Datasnap.DSHTTPClient
Parent: TDSHTTP

Delphi

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

C++

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

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