2016-11-15 17:44:58 -05:00
|
|
|
Long: data-binary
|
|
|
|
Arg: <data>
|
|
|
|
Help: HTTP POST binary data
|
|
|
|
Protocols: HTTP
|
2020-07-13 08:15:04 -04:00
|
|
|
Category: http post upload
|
2016-11-15 17:44:58 -05:00
|
|
|
---
|
|
|
|
This posts data exactly as specified with no extra processing whatsoever.
|
|
|
|
|
|
|
|
If you start the data with the letter @, the rest should be a filename. Data
|
|
|
|
is posted in a similar manner as --data does, except that newlines and
|
|
|
|
carriage returns are preserved and conversions are never done.
|
|
|
|
|
2018-10-02 21:55:57 -04:00
|
|
|
Like --data the default content-type sent to the server is
|
|
|
|
application/x-www-form-urlencoded. If you want the data to be treated as
|
|
|
|
arbitrary binary data by the server then set the content-type to octet-stream:
|
|
|
|
-H "Content-Type: application/octet-stream".
|
|
|
|
|
2016-11-15 17:44:58 -05:00
|
|
|
If this option is used several times, the ones following the first will append
|
|
|
|
data as described in --data.
|