Fix deprecation in the curl