curl -I

From IndieWeb


curl -I is a command line option for the curl command that takes no parameters and tells curl to retrieve the HTTP-header only using the HTTP HEAD command.

Equivalent in PHP for setting curl options in a $c variable:

  • curl_setopt($c, CURLOPT_HEADER, true);

See Also