]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[params] Allow for arbitrary HTTP request headers to be specified
authorMichael Brown <mcb30@ipxe.org>
Tue, 28 Feb 2023 17:46:13 +0000 (17:46 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 1 Mar 2023 12:20:02 +0000 (12:20 +0000)
commit96bb6ba441653a30729ade38dc6c23bc9e2d2339
tree9a1023d23aabdb096ac7a3d0df5554fbf40d73f7
parent33cb56cf1b7a7138542fe18fd86898fdca2e8f0a
[params] Allow for arbitrary HTTP request headers to be specified

Extend the request parameter mechanism to allow for arbitrary HTTP
headers to be specified via e.g.:

  params
  param --header Referer http://www.example.com
  imgfetch http://192.168.0.1/script.ipxe##params

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/params.c
src/hci/commands/param_cmd.c
src/include/ipxe/params.h
src/net/tcp/httpcore.c
src/tests/uri_test.c