Request Parameters¶
Request parameters are positional arguments after the URL.
Separator |
Type |
Example |
|---|---|---|
|
HTTP header |
|
|
Header removal (empty value) |
|
|
Query parameter |
|
|
JSON/form field (as string) |
|
|
JSON field (interpreted) |
|
|
File upload |
|
|
Cookie |
|
Content type¶
By default, data fields are serialized as JSON. Use flags to change this:
# JSON (default)
curl-cffi post https://httpbin.org/post name=test count:=5
# Form-encoded
curl-cffi post --form https://httpbin.org/post name=test
# Multipart
curl-cffi post --multipart https://httpbin.org/post name=test @file.txt