curl -I

 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: