the example in the doc only use a txt file, but if you try with a binary format (an image for example it complains )
http --form POST localhost:7777 avatar=@valid_avatar.jpg
Form file fields use @
as the key-value separator (=@
is for embedding of the contents of text and JSON files):
$ http --form :7777 avatar@valid_avatar.jpg
Docs:
Most helpful comment
Form file fields use
@
as the key-value separator (=@
is for embedding of the contents of text and JSON files):Docs: