Datasnap.DSHTTPClient.TDSHTTP.SetAuthentication
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 |
|---|---|
|
|
The user name to encode for Authorization. |
|
|
The password to encode for Authorization. |