How to send line break with curl?

curl, http, newline

Solution

Sometimes you want to provide the data to be sent verbatim.

The `--data-binary` option does that.

Problem

I've tried the following to send a line break with curl, but `\n` is not interpreted by curl. ``` curl -X PUT -d "my message\n" http://localhost:8000/hello ``` How can I send a line break with curl?

Original source

Related problems