Do not rely on allow_url_fopen

This fixes beerxml-plugin does not work when URL file-access is disabled
in the server configuration
(https://github.com/dbspringer/beerxml-plugin/issues/2) by replacing the
file_get_contents call with cURL.