Below is an example of making an HTTP request to from PHP.


If you would like to setup timeout and retry options, as discussed in the reliability tips section, there is a curl package available that lets you do that easily:

use Curl\Curl;

$curl = new Curl();

Note: this code does not throw any exceptions.