Codex

Function Reference/wp remote fopen

Description

Returns the contents of a remote URI. Tries to retrieve the HTTP content with fopen first and then using cURL, if fopen can't be used.

Usage

 <?php $contents wp_remote_fopen($uri); ?> 

Parameters

$uri
(string) (required) The URI of the remote page to be retrieved.
Default: None
See also index of Function Reference and index of Template Tags.