get_headers

get_headers

(PHP 5, PHP 7)

get_headersFetches all the headers sent by the server in response to a HTTP request

Description

array get_headers ( string $url [, int $format = 0 ] )

get_headers() returns an array with the headers sent by the server in response to a HTTP request.

Parameters

url

The target URL.

format

If the