This example demonstrates how to retrieve the headers of a website using cURL. The `curl_init()` function initializes a cURL session, and `curl_setopt()` sets options for the session. In this example, the URL is set as an option, and `CURLOPT_RETURNTRANSFER` is set to 1 to return the response as a string. The `curl_exec()` function executes the session, and the headers are retrieved using `curl_getinfo()`. Finally, `curl_close()` closes the session, and the headers are printed using `print_r()`. Package library: PHP cURL or PHP HTTP REQUEST.