WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp get http headers

Description

Retrieve HTTP Headers from URL.

Usage

<?php wp_get_http_headers$url$deprecated ?>

Parameters

$url
(string) (required)
Default: None
$deprecated
(boolean) (optional) Not Used.
Default: false

Return Values

(boolean|string) 
False on failure, headers on success.

Examples

Notes

Change Log

Since: 1.5.1

Source File

wp_get_http_headers() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.