I tried your first approach with the php operator file_get_contents, and it works fine.
Make sure you didn't make a typo somewhere, and try clearing cache. Also, check in your php.ini that allow_url_fopen is enabled.
You must be logged in to post messages in this topic!