Posted tagged ‘Basic Authentication Scheme’

How to simulate HTTP Basic Authentication in Borland SilkPerformer

September 27, 2008
How Basic Authentication works: http://tools.ietf.org/html/rfc2617#page-5
Code:
WebBase64Encode(sUserPass, 200, nUserPassLen, “username:password”);
sUserPass := “Basic ” + sUserPass;
WebHeaderAdd(“Authorization”, sUserPass);
Variables sUserPass and nUserPassLen should be declared.
Advertisements