Curl is library that for making HTTP requests.
AppEngine has a different library - URL Fetch - which has been intergrated into the standard PHP wrappers.
The code should be converted to use standard php functions instead.
See:
The function GetAsJson could be rewritten as something like
function GetAsJson($url) {
$data = file_get_contents($url);
foreach ($http_response_header as $header_line)
if (preg_match('/^HTTP\/\d.\d (\d+)/,$header_line,$match))
$http_status = intval($match[1]);
return array($http_status, json_decode($data));
}getting the data itself is as simple as using file_get_contents, but getting the status code is a little more tricky.