uclient-fetch: add option to read POST data from file
authorGio <gio@diveni.re>
Fri, 12 Jun 2020 10:59:52 +0000 (12:59 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 17 Jun 2020 15:03:42 +0000 (16:03 +0100)
commitc66098611f16806a936a3a3f92113a16382fc4d9
tree8d674b504614178b975375100f5e8aa5b334e01c
parentaf585dbd1d444faafa370a73c1db43aece731f85
uclient-fetch: add option to read POST data from file

Passing post data in command line is convenient but has limited size,
and may become tricky to correctly escape passed data especially in
scripts.
This patch add the option --post-file so the data to post can be read
from a file.
Tested on x86/64.

Acked-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Gioacchino Mazzurco <gio@eigenlab.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
uclient-fetch.c