uclient-fetch: add option to read POST data from file openwrt-19.07
authorGio <gio@diveni.re>
Fri, 12 Jun 2020 10:59:52 +0000 (12:59 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 17 Jun 2020 20:16:42 +0000 (22:16 +0200)
commit51e16ebffc740c6afcdd45aced20fc0354a502d7
treed917f1f64d63a03e16a726e1c7c3f7e7843c4311
parent99aebe3a425711f1840da149346c65f223ed183e
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>
(cherry picked from commit c66098611f16806a936a3a3f92113a16382fc4d9)
uclient-fetch.c