Skip to content

HttpAuthBasic - cHttpClient

Include: Use System\Http.pkg

Sets the Authorization header for HTTP Basic authentication.

Type: Procedure

Parameters

Parameter Type Description
sUsername String Username.
sPassword String Password.
sOptRealm String Reserved for compatibility; pass an empty string unless your integration requires a realm value.

Syntax

Procedure HttpAuthBasic String sUsername String sPassword String sOptRealm

Call

Send HttpAuthBasic of hoObj "user" "password" ""

Description

Sets Authorization: Basic <base64(username:password)>. sOptRealm is reserved for compatibility; pass an empty string unless your integration requires a realm value.