{"id":222,"date":"2013-06-07T14:00:00","date_gmt":"2013-06-07T14:00:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2013\/06\/07\/how-to-let-curl-display-the-http-response-code\/"},"modified":"2013-06-07T14:00:00","modified_gmt":"2013-06-07T14:00:00","slug":"how-to-let-curl-display-the-http-response-code","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2013\/06\/07\/how-to-let-curl-display-the-http-response-code\/","title":{"rendered":"how to let cURL display the HTTP response code"},"content":{"rendered":"<p>\t\t\t\t<a href=\"http:\/\/beerpla.net\/2010\/06\/10\/how-to-display-just-the-http-response-code-in-cli-curl\/\">How To Display Just The HTTP Response Code In Command Line Curl<\/a><\/p>\n<p>Adding this to a curl command line is actually quite useful:<\/p>\n<blockquote><p>\n<span>&#8211;write-out &#8220;%{http_code} %{url_effective}\\n&#8221;<\/span><\/p><\/blockquote>\n<p>Now I actually wonder why curl doesn&#8217;t display the HTTP response code by default. In my scraping scripts (based on libcurl) I have always been making use of it anyway. But every now and then you have another requirement for your favourite tool.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How To Display Just The HTTP Response Code In Command Line Curl Adding this to a curl command line is actually quite useful: &#8211;write-out &#8220;%{http_code} %{url_effective}\\n&#8221; Now I actually wonder why curl doesn&#8217;t display the HTTP response code by default. In my scraping scripts (based on libcurl) I have always been making use of it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-3A","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/222\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}