Naive patch for supporting Google App Engine for PHP. CURL not supported

CURL is not supported on Google App Engine for PHP. So additional
method based on fopen is implemented.