Alternative for file_get_contents() using curl