wp_get_http Wordpress function


Description:

Perform a HTTP HEAD or GET request.


Syntax:


Arguments:

(string) $url URL to fetch.
(string|bool) $file_path Optional. File path to write request to.
(int) $red (private) The number of Redirects followed, Upon 5 being hit, returns false.


Return Type:

(bool|string) False on failure and string of headers if HEAD request.


Define At:

wp-includes/functions.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_get_http


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×