udpate deprecated argument to curl