This example manually sets the Authorization header on the client. This works for a single request, but will not stick, so further requests will need to be authenticated.
Example: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;
//From
public function TSStatus($host, $queryPort);
//to
public function __construct($host, $queryPort);