fixing error of using bad request

dev.php is a sand box file,