Wrapper for PHP's curl library