In many cases, with regards to using the built in PHP Curl command to communicate with a web server, the basic Curl code works fine. There are many websites that purposely block requests unless the web server is sure the web request came from an actual web browser. This is to thrawt bot requests.
To overcome this issue and be able to successfully send Curl commands to even the most up-to-date and saavy web servers like Facebook, Youtube, Google, etc., the PHP syntax for Curl is shown below.