uclient-fetch: add support for --header cmdline argument
authorDaniel Golle <daniel@makrotopia.org>
Tue, 2 Apr 2024 19:20:42 +0000 (20:20 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 27 Jun 2024 00:11:43 +0000 (01:11 +0100)
commita220818a1435cfa2b153aa36e6b9c543546fd9b8
tree965717c2ea0fd65f0a631440c927f23c8d115c55
parente035d57686645bc18ae6ded2ffb18d40b158e900
uclient-fetch: add support for --header cmdline argument

Add --header='Header: value' option to allow adding custom HTTP headers
to a request, compatible with wget. The option can be used multiple times
to add multiple headers and also allows overriding the Content-Type header
for POST requests.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
tests/cram/test-san_uclient-fetch.t
tests/cram/test_uclient-fetch.t
uclient-fetch.c