Why isn't this urlencode JSON GET request working?
If you're using a GET call, you need to pass the query in the source
query string parameter:
curl_setopt($curl, CURLOPT_URL, 'http://10.128.0.2:9200/testers/test/_search?source=' . urlencode($json));