public static function performRequest($url, $post = array()) {
		// preparation de l'envoi
		$ch = curl_init();
	
		curl_setopt($ch, CURLOPT_URL, $url);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
		if($post) {
			curl_setopt($ch, CURLOPT_POST, true);
			curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post, '', '&'));
		} else {
			curl_setopt($ch, CURLOPT_POST, false);
		}
			
		if (isset($_SERVER['HTTPS'])) {
			curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
			curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
		}
		
		curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); //Fixes the HTTP/1.1 417 Expectation Failed Bug
	
		// Let's forward all cookies so the session in preserved.
		// Problem: because the session file is locked, we cannot do that without closing the session first
		session_write_close();
	
		$cookieArr = array();
		foreach ($_COOKIE as $key=>$value) {
			$cookieArr[] = $key."=".urlencode($value);
		}
		$cookieStr = implode("; ", $cookieArr);
		curl_setopt($ch, CURLOPT_COOKIE, $cookieStr);
	
		$response = curl_exec($ch );
	
		// And let's reopen the session...
		session_start();
	
		if( curl_error($ch) ) {
			throw new MoufException("An error occurred: ".curl_error($ch));
		}
		curl_close( $ch );
	
		return $response;
	}