Changed example to use CURL