Changes to the original:
    * Uses PHP's curl instead of PECL HttpRequest
    * Replaced each 4 whitespaces by a tabulator