Originally Posted by abduraooft
Exactly what you want, BUT its only usable via HTTP if allow_url_fopen is enabled (which I believe it is by default). If disabled, curl is the way to go.
As for installing curl, if you're on you're own server, there is a quick installation guid on the api: http://www.php.net/manual/en/curl.installation.php
If you're hosted, thats likely already enabled since its a commonly used extension.