src/Net/CURL.php
public function setOption( $option, $value )
	{
		if( is_string( $option ) && $option )
		{
			if( defined( $option ) )
				$option	= constant( $option );
			else
				throw new InvalidArgumentException( 'Invalid CURL option constant "'.$option.'"' );
		}
//		if( !curl_setopt( $this->handle, $option, $value ) )
//			throw new InvalidArgumentException( "Option could not been set." );
		curl_setopt( $this->handle, $option, $value );
		$this->options[$option]	= $value;
	}
public function setOption( $option, $value )
	{
		if( is_string( $option ) && $option )
		{
			if( defined( $option ) )
				$option	= constant( $option );
			else
				throw new InvalidArgumentException( 'Invalid CURL option constant "'.$option.'"' );
		}
//		if( !curl_setopt( $this->handle, $option, $value ) )
//			throw new InvalidArgumentException( "Option could not been set." );
		curl_setopt( $this->handle, $option, $value );
		$this->options[$option]	= $value;
	}
public function setOption ( $ option , $ value ) { if ( is_string ( $ option ) && $ option ) { if ( defined ( $ option ) ) $ option = constant ( $ option ) ; else throw new InvalidArgumentException ( 'Invalid CURL option constant "' . $ option . '"' ) ; } //		if( !curl_setopt( $this->handle, $option, $value ) ) //			throw new InvalidArgumentException( "Option could not been set." ); curl_setopt ( $ this -> handle , $ option , $ value ) ; $ this -> options [ $ option ] = $ value ; }
Set a cURL option.

@access		public
@param		mixed		$option		One of the valid CURLOPT defines.
@param		mixed		$value		the value of the cURL option.
@return		void
@link		http://www.php.net/curl_setopt
@link		http://www.php.net/manual/en/function.curl-setopt.php
Set a cURL option .