protected function buildHttpRequest($path, $hostname)
    {
        $r = array();
        $r[] = "GET {$path} HTTP/1.1";
        $r[] = "Host: {$hostname}";
        $r[] = "Connection: Close";
        $r[] = "User-Agent: HttpAdapter PHP-Library";
        $r[] = "\r\n";

        return implode("\r\n", $r);
    }