public static function load()
 {
     xhttp::load('profile');
     xhttp::addHook('data-preparation', array(__CLASS__, 'oauth_sign_request'), 9);
     xhttp_profile::addFunction('oauth', array(__CLASS__, 'oauth'));
     xhttp_profile::addFunction('set_token', array(__CLASS__, 'set_token'));
     xhttp_profile::addFunction('set_realm', array(__CLASS__, 'set_realm'));
     xhttp_profile::addFunction('get_oauth_header', array(__CLASS__, 'get_oauth_header'));
     xhttp_profile::addFunction('oauth_method', array(__CLASS__, 'oauth_method'));
     return true;
 }
 public static function load()
 {
     xhttp::load('profile');
     xhttp::addHook('data-preparation', array(__CLASS__, 'apply_cookies'), 3);
     xhttp::addHook('return-response', array(__CLASS__, 'store_cookies'), 8);
     xhttp_profile::addFunction('export_cookies', array(__CLASS__, 'export_cookies'));
     xhttp_profile::addFunction('import_cookies', array(__CLASS__, 'import_cookies'));
     return true;
 }