fixing curl stuff in test.php