shared.php now uses curl