php-curl instead of php-rest-client