I have still the problem, in egual mode to before.
The class is very big, the name of pack is "Class: Advanced HTTP Client", I can post little part where the variable was definided.
class http {
var $_socket;
var $host;
var $port;
var $http_version;
var $user_agent;
var $errstr;
var $connected;
var $uri;
var $_proxy_host;
var $_proxy_port;
var $_proxy_login;
var $_proxy_pwd;
var $_use_proxy;
var $_response;
var $_request;
var $_keep_alive;
var $url_root;
/*******************************************************
2002-06-19 - GuinuX : Deprecated Members
var $status;
var $body;
var $response_headers;
var $cookies;
var $_request_headers;
********************************************************/
function http( $http_version = HTTP_V10, $keep_alive = false, $auth = false ) {
$this->http_version = $http_version;
$this->connected = false;
$this->user_agent = 'CosmoHttp/1.1 (compatible; MSIE 5.5; Linux)';
$this->host = '';
$this->port = 80;
$this->errstr = '';
$this->_keep_alive = $keep_alive;
$this->_proxy_host = '';
$this->_proxy_port = -1;
$this->_proxy_login = '';
$this->_proxy_pwd = '';
$this->_use_proxy = false;
$this->_response = new http_response_message();
$this->_request = new http_request_message();
// Basic Authentification added by Mate Jovic, 2002-18-06, jovic@matoma.de
if( is_array($auth) && count($auth) == 2 ){
$auth = base64_encode( "{$auth[0]}:{$auth[1]}" );
$this->_request->set_header( 'Authorization', "Basic $auth" );
}
} // End of Constuctor