Generating the Authentication Header When Basic Authentication
This lesson discusses how to create the header that is required when retrieving data from your ScreenSteps Live account using the ScreenSteps Live API and a user account's username/password.
Authorization Header When Using ScreenSteps Live User Account Username/Password
Content-Type: application/xml
Accept: application/xml
Date: Tue, 06 Jan 2009 17:56:39 GMT
Authorization: Basic AUTH_STRING
Generating AUTH_STRING
To generate the AUTH_STRING to use with Basic authentication you simply base64 encode the username and password separated by a colon.
Here is an example in PHP:
$header = "Authorization: Basic " . base64_encode($username . ':' . $password);
Add your comment