function setOption( $option, $value )
    {
        if ( !in_array( $option, $this->Options ) )
        {
            // throwing an exception would make more sense, but we did not before - keep this for compat
            return false;
            //throw new Exception( "Option $option not supported" );
        }

        switch( $option )
        {
            case 'timeout':
                $this->Timeout = (int)$value;
                break;
            case 'login':
                $this->Login = $value;
                break;
            case 'password':
                $this->Password = $value;
                break;
            case 'authType':
                $this->AuthType = (int)$value;
                if ( $value != 1 )
                {
                    $this->ForceCURL = true;
                }
                break;
            case 'requestCompression':
                $this->RequestCompression = $value;
                break;
            case 'method':
                $this->Verb = strtoupper( $value );
                break;
            case 'acceptedCompression':
                $this->AcceptedCompression = $value;
                break;
            case 'proxyHost':
                $this->Proxy = $value;
                break;
            case 'proxyPort':
                $this->ProxyPort = ( (int)$value != 0 ? (int)$value : 8080 );
                break;
            case 'proxyUser':
                $this->ProxyLogin = $value;
                break;
            case 'proxyPassword':
                $this->ProxyPassword = $value;
                break;
            case 'proxyAuthType':
                $this->ProxyAuthType = (int)$value;
                if ( $value != 1 )
                {
                    $this->ForceCURL = true;
                }
                break;
            case 'forceCURL':
                $this->ForceCURL = (bool)$value;
                break;
            case 'debug':
                $this->Debug = (int)$value;
                break;
            case 'SSLVerifyHost':
                $this->SSLVerifyHost = (int)$value;
                break;
            case 'SSLVerifyPeer':
                $this->SSLVerifyPeer = (bool)$value;
                break;
            case 'SSLCAInfo':
                $this->SSLCAInfo = $value;
                break;
        }
        return true;
    }