I've searched for this answer but not found anything that works or that completely matches my problem.
Using Unix cURL, I need to POST a key/val pair to a server. The key will be "MACs", and the contents of a file of newline separated MAC addresses will be the VALUE for this POST.
I've tried:
curl -d @filename http://targetaddress.com
, but when the target receives the incoming POST, the POST var is empty. (PHP is receiving).
I've seen other forms of curl mentioned on this site, using --url-encode
which says it is not a valid option for curl on my system...
How do you POST the contents of a file as a value to a specific key in a POST using UNIX cURL?