changed CURL to file stream for GAE compatibility