quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

data-binary.md (993B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Long: data-binary
      5 Arg: <data>
      6 Help: HTTP POST binary data
      7 Protocols: HTTP
      8 Category: http post upload
      9 Added: 7.2
     10 Multi: append
     11 See-also:
     12   - data-ascii
     13 Example:
     14   - --data-binary @filename $URL
     15 ---
     16 
     17 # `--data-binary`
     18 
     19 Post data exactly as specified with no extra processing whatsoever.
     20 
     21 If you start the data with the letter @, the rest should be a filename.
     22 `@-` makes curl read the data from stdin. Data is posted in a similar
     23 manner as --data does, except that newlines and carriage returns are
     24 preserved and conversions are never done.
     25 
     26 Like --data the default content-type sent to the server is
     27 application/x-www-form-urlencoded. If you want the data to be treated as
     28 arbitrary binary data by the server then set the content-type to octet-stream:
     29 -H "Content-Type: application/octet-stream".
     30 
     31 If this option is used several times, the ones following the first append
     32 data as described in --data.