Bash n00b here.. I'm posting a file b64 encoded like this using curl:
$ cat file.txt | openssl base64 | curl --data @- myhost.com/api
Works good. I split the key/value on the server side, the entire message goes into the key, but that's ok I parse it out and convert to ascii etc.. on the server.
How can I append other key/values to the post? Something like..
$ cat file.txt | openssl base64 | PREPEND "key=value1&key2&value2&btext=" | curl --data @- myhost.com/api