File: data-binary.d

package info (click to toggle)
curl 7.74.0-1.3%2Bdeb11u13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 38,532 kB
  • sloc: ansic: 155,566; perl: 14,107; sh: 5,226; makefile: 1,487; python: 623; pascal: 603; cpp: 169
file content (19 lines) | stat: -rw-r--r-- 758 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Long: data-binary
Arg: <data>
Help: HTTP POST binary data
Protocols: HTTP
Category: http post upload
---
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.

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".

If this option is used several times, the ones following the first will append
data as described in --data.