Merge "Document how to send file content without conversion using curl"
diff --git a/Documentation/dev-rest-api.txt b/Documentation/dev-rest-api.txt
index 869ac2b..0175a62 100644
--- a/Documentation/dev-rest-api.txt
+++ b/Documentation/dev-rest-api.txt
@@ -40,6 +40,14 @@
   curl -X PUT -d@testdata.txt --header "Content-Type: application/json" http://localhost:8080/path/to/api/
 ----
 
+Note that the `-d` option will remove the newlines from the content of the
+local file. If the content should be sent as-is then use the `--data-binary`
+option instead:
+
+----
+  curl -X PUT --data-binary @testdata.txt --header "Content-Type: text/plain" http://localhost:8080/path/to/api/
+----
+
 
 Authentication
 ~~~~~~~~~~~~~~