Changed exec function argument to use the --data flag for the curl command