]> granicus.if.org Git - curl/commit
curl: show headers in bold
authorDaniel Stenberg <daniel@haxx.se>
Thu, 17 May 2018 11:56:35 +0000 (13:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 21 May 2018 18:05:05 +0000 (20:05 +0200)
commitc1c27625c797cfb7b21128484b4990446c1e92d9
tree7a1e6b2597a10628f7787e16bb850adb09a87fc7
parent6876ccf90b473480998af4619de5f316fbd63084
curl: show headers in bold

The feature is only enabled if the output is believed to be a tty.

-J: There's some minor differences and improvements in -J handling, as
now J should work with -i and it actually creates a file first using the
initial name and then *renames* that to the one found in
Content-Disposition (if any).

-i: only shows headers for HTTP transfers now (as documented).
Previously it would also show for pieces of the transfer that were HTTP
(for example when doing FTP over a HTTP proxy).

-i: now shows trailers as well. Previously they were not shown at all.

--libcurl: the CURLOPT_HEADER is no longer set, as the header output is
now done in the header callback.
22 files changed:
src/tool_cb_hdr.c
src/tool_cb_hdr.h
src/tool_cb_wrt.c
src/tool_cb_wrt.h
src/tool_cfgable.h
src/tool_getparam.c
src/tool_operate.c
tests/data/test1116
tests/data/test1319
tests/data/test1321
tests/data/test1400
tests/data/test1401
tests/data/test1402
tests/data/test1403
tests/data/test1404
tests/data/test1405
tests/data/test1406
tests/data/test1407
tests/data/test1417
tests/data/test1420
tests/data/test2010
tests/data/test266