private function formatParams() {

		$params = [];

		//Params
		foreach($this -> params as $param) {

			$key  	= $param -> encode ? urlencode($param -> key) : $param -> key;
			$value 	= $param -> encode ? urlencode($param -> value) : $param -> value;

			$params[$key] = $value;
		}

		//Files
		foreach($this -> files as $file) {
			
			if(function_exists('curl_file_create')) {
				$value = curl_file_create($file -> file -> entity() -> getBasepath());
			} 
			else { 
			  	$value = '@' . realpath($file -> file -> entity() -> getBasepath());
			}

			$params[$file -> name] = $value;
		}

		return $params;
	}