[FEATURE] Support for the status call
[TASK] Be more verbose with the cURL request

cURL can fail because of various reasons. Therefore
it is good to check if an error happens as it makes it easier
in a later implementation to check for the error.
Merge pull request #2 from georgringer/master

Improve the PHP example