How to get HTML source of any website with PHP? [duplicate] How to get HTML source of any website with PHP? [duplicate] curl curl

How to get HTML source of any website with PHP? [duplicate]


That is because facebook runs on HTTPS (SSL Protocol) . Add this to your existing cURL parameters

curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($curl_handle, CURLOPT_SSL_VERIFYHOST, false);