Document how to send file content without conversion using curl

Change-Id: I45d881bb87e465e826884dd0286b4900fb93059a
This commit is contained in:
Sasa Zivkov 2013-05-29 16:43:35 +02:00
parent 363497ee67
commit 544937921c

View File

@ -40,6 +40,14 @@ Test data can be included from a local file:
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
~~~~~~~~~~~~~~