{"id":11117,"date":"2018-04-28T14:27:44","date_gmt":"2018-04-28T12:27:44","guid":{"rendered":"https:\/\/daniel.haxx.se\/blog\/?p=11117"},"modified":"2018-05-21T23:17:03","modified_gmt":"2018-05-21T21:17:03","slug":"would-you-like-some-bold-with-those-headers","status":"publish","type":"post","link":"https:\/\/daniel.haxx.se\/blog\/2018\/04\/28\/would-you-like-some-bold-with-those-headers\/","title":{"rendered":"Would you like some bold with those headers?"},"content":{"rendered":"<p>Displaying HTTP headers for a URL on the screen is one of those things people commonly use curl for.<\/p>\n<pre>curl -I example.com<\/pre>\n<p>To help your eyes separate header names from the corresponding values, I&#8217;ve been experimenting with a <a href=\"https:\/\/github.com\/curl\/curl\/pull\/2538\">change<\/a> that makes the header names get shown using a bold type face and the header values to the right of the colons to use the standard font.<\/p>\n<p>Sending a HEAD request to the curl site could look like this:<\/p>\n<p><a href=\"https:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2018\/04\/bold-headers-terminal.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11131\" src=\"https:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2018\/04\/bold-headers-terminal.png\" alt=\"\" width=\"753\" height=\"451\" srcset=\"https:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2018\/04\/bold-headers-terminal.png 753w, https:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2018\/04\/bold-headers-terminal-200x120.png 200w, https:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2018\/04\/bold-headers-terminal-450x270.png 450w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/a><\/p>\n<p>This seemingly small change required an unexpectedly large surgery.<\/p>\n<p>Now I want to turn this into a discussion if this is good enough, if we need more customization, how to make the code act on windows and perhaps how an option to explicitly enable\/disable this should be named.<\/p>\n<p>If you have ideas for any of that or other things around this feature, do comment in the <a href=\"https:\/\/github.com\/curl\/curl\/pull\/2538\">PR<\/a>.<\/p>\n<p>The feature window for the next curl release is already closed so this change will not be considered for real until curl 7.61.0 at the earliest. Due for release in July 2018. So lots of time left to really &#8220;bike shed&#8221; all the details!<\/p>\n<p><strong>Update:<\/strong> the PR was <a href=\"https:\/\/github.com\/curl\/curl\/commit\/f3d836b73601fc6d14cb917e1cd72f43b9056dff\">merged into master<\/a> on May 21st.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Displaying HTTP headers for a URL on the screen is one of those things people commonly use curl for. curl -I example.com To help your eyes separate header names from the corresponding values, I&#8217;ve been experimenting with a change that makes the header names get shown using a bold type face and the header values &hellip; <a href=\"https:\/\/daniel.haxx.se\/blog\/2018\/04\/28\/would-you-like-some-bold-with-those-headers\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Would you like some bold with those headers?<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":10154,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,6],"tags":[33,230,147],"class_list":["post-11117","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-curl","category-floss","tag-curl-and-libcurl","tag-http","tag-terminal"],"_links":{"self":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/11117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/comments?post=11117"}],"version-history":[{"count":5,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/11117\/revisions"}],"predecessor-version":[{"id":11176,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/11117\/revisions\/11176"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/media\/10154"}],"wp:attachment":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/media?parent=11117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/categories?post=11117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/tags?post=11117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}