When sending form data with curl, if the -F parameter doesn't work, it was necessary to use --data-urlencode as "key=xx" or -d 'key=value&key2=value2'.