Many recepies for sending data with curl
via POST method didn't work for me. Eg, this was not working for me:
🔴
curl -F ‘data=@path/to/local/file’ UPLOAD_ADDRESS
(as advised for example here)
This is one which works for me:
✅
curl -F name=John -F shoesize=11 -F 'file=<file.txt' https://domain.name/form-upload.php
please note the "<
" mark in the file form (file=<file.txt
)