wp_get_http
- wp_get_http is deprecated since version 4.4.0!
Alternative: WP_Http
wp_get_http ( $url, $file_path = false, $red = 1 )
Parameters:- (string) url URL to fetch.
- (string|bool) file_path Optional. File path to write request to. Default false.
- (int) red Optional. The number of Redirects followed, Upon 5 being hit, returns false. Default 1.
See:Returns:- (WpOrgRequestsUtilityCaseInsensitiveDictionary|false) Headers on success, false on failure.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: 4.4.0
Description
Perform a HTTP HEAD or GET request.If $file_path is a writable filename, this will do a GET request and write
the file to that path.