113498266Sopenharmony_ci---
213498266Sopenharmony_cic: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
313498266Sopenharmony_ciSPDX-License-Identifier: curl
413498266Sopenharmony_ciLong: data-binary
513498266Sopenharmony_ciArg: <data>
613498266Sopenharmony_ciHelp: HTTP POST binary data
713498266Sopenharmony_ciProtocols: HTTP
813498266Sopenharmony_ciCategory: http post upload
913498266Sopenharmony_ciAdded: 7.2
1013498266Sopenharmony_ciMulti: append
1113498266Sopenharmony_ciSee-also:
1213498266Sopenharmony_ci  - data-ascii
1313498266Sopenharmony_ciExample:
1413498266Sopenharmony_ci  - --data-binary @filename $URL
1513498266Sopenharmony_ci---
1613498266Sopenharmony_ci
1713498266Sopenharmony_ci# `--data-binary`
1813498266Sopenharmony_ci
1913498266Sopenharmony_ciThis posts data exactly as specified with no extra processing whatsoever.
2013498266Sopenharmony_ci
2113498266Sopenharmony_ciIf you start the data with the letter @, the rest should be a filename. Data
2213498266Sopenharmony_ciis posted in a similar manner as --data does, except that newlines and
2313498266Sopenharmony_cicarriage returns are preserved and conversions are never done.
2413498266Sopenharmony_ci
2513498266Sopenharmony_ciLike --data the default content-type sent to the server is
2613498266Sopenharmony_ciapplication/x-www-form-urlencoded. If you want the data to be treated as
2713498266Sopenharmony_ciarbitrary binary data by the server then set the content-type to octet-stream:
2813498266Sopenharmony_ci-H "Content-Type: application/octet-stream".
2913498266Sopenharmony_ci
3013498266Sopenharmony_ciIf this option is used several times, the ones following the first append
3113498266Sopenharmony_cidata as described in --data.
32