Changed from curl to file_get_contents, which allows to library to be used on the Google App Engine platform.