Curl Dump Response Headers to STDOUT and Ignore Response Body

Tags: May 7, 2018 6:48 AM


Return only HTTP response header when opening a web page using curl. This is useful when we are interested in processing response headers only.


We will utilize /dev/stdout and /dev/null to achieve what we want.

$ curl -D /dev/stdout -o /dev/null --silent
HTTP/2 200
date: Sun, 06 May 2018 23:42:37 GMT
content-type: text/html; charset=UTF-8
set-cookie: __cfduid=d6347d57f364b276150034b241b19cdb01525650157; expires=Mon, 06-May-19 23:42:37 GMT; path=/;; HttpOnly
expires: Sun, 06 May 2018 23:42:37 GMT
cache-control: private, max-age=0
last-modified: Sun, 06 May 2018 23:42:05 GMT
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
expect-ct: max-age=604800, report-uri=""
server: cloudflare
cf-ray: 416f4deb6f51a320-HKG


Share on Facebook Twitter


cvrvh04a6h said...

All you really need to do to play slots is make your bet click on on} spin. That said, today’s slots games have numerous bonus features, a number of} paylines and free spins, which require a little bit of consideration 제왕카지노 to take full benefit of to maximize your winnings. Be certain and examine the assistance part of your favourite slot for particulars on betting different numbers of paylines, and so forth.

Post a Comment