WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp get http headers

Contents

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.