curl -I

From IndieWeb
Jump to: navigation, search


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