{"data":{"site":{"siteMetadata":{"title":"Lime Brains","description":"We are The Software House where business questions meet software answers.","url":"https://limebrains.com"}},"markdownRemark":{"html":"<h1>Problem 😱</h1>\n<p>You would like to have get only headers from request.</p>\n<hr>\n<h1>Solution 🤓</h1>\n<p>We will use <code class=\"language-text\">curl</code> command to achieve it:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token operator\">|</span> <span class=\"token operator\">=</span><span class=\"token operator\">></span> <span class=\"token function\">curl</span> <span class=\"token parameter variable\">--help</span> <span class=\"token operator\">|</span> <span class=\"token function\">grep</span> <span class=\"token string\">\"\\-I,\"</span>\n -I, <span class=\"token parameter variable\">--head</span>          Show document info only</code></pre></div>\n<p>usage:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token operator\">|</span> <span class=\"token operator\">=</span><span class=\"token operator\">></span> <span class=\"token function\">curl</span> <span class=\"token parameter variable\">-I</span> http://pythonic.ninja\nHTTP/1.1 <span class=\"token number\">200</span> OK\nServer: GitHub.com\nDate: Wed, 08 Nov <span class=\"token number\">2017</span> <span class=\"token number\">13</span>:44:25 GMT\nContent-Type: text/html<span class=\"token punctuation\">;</span> <span class=\"token assign-left variable\">charset</span><span class=\"token operator\">=</span>utf-8\nContent-Length: <span class=\"token number\">10556</span>\nLast-Modified: Sun, 05 Nov <span class=\"token number\">2017</span> <span class=\"token number\">11</span>:48:59 GMT\nAccess-Control-Allow-Origin: *\nExpires: Wed, 08 Nov <span class=\"token number\">2017</span> <span class=\"token number\">13</span>:54:25 GMT\nCache-Control: max-age<span class=\"token operator\">=</span><span class=\"token number\">600</span>\nAccept-Ranges: bytes\nX-GitHub-Request-Id: FF40:288D5:B312F9:F94B6E:5A030A39</code></pre></div>","excerpt":"Problem 😱 You would like to have get only headers from request. Solution 🤓 We will use   command to achieve it: usage:","frontmatter":{"title":"How to fetch only headers using curl?","subtitle":"How to fetch only headers using curl?","date":"2017-11-08 14:42","seo":{"title":"How to fetch only headers using curl?","description":"How to fetch only headers using curl?","noindex":false}},"fields":{"slug":"/blog/2017-11-08T14:42-how-to-fetch-headers/"}}},"pageContext":{"slug":"/blog/2017-11-08T14:42-how-to-fetch-headers/","indexable":false}}