I\'ve tried the following to send a line break with curl, but \\n is not interpreted by curl.
\\n
curl -X PUT -d \"my message\\n\" http://localhost:
The solution for someone who doesn't want to use files, and doesn't want to resort to shell escaping magic is:
curl -X POST --data-binary @- http://url.com <
But this is literal newlines in the post data payload, and not in form fields.