Update curl-test.php

Changed the API request from 'location' to 'query' search, eliminating the need for a latitude, longitude. 

Also, url-encodes the search criteria so empty spaces get eliminated.