# Easily Get HTTP Headers

**URL:** <https://forum.kirupa.com/t/easily-get-http-headers/191123>\
**Category:** open source\
**Created:** [June 17, 2006, 1:47pm UTC](https://forum.kirupa.com/t/easily-get-http-headers/191123 "2006-06-17T13:47:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [June 17, 2006, 1:47pm UTC](https://forum.kirupa.com/t/easily-get-http-headers/191123/1 "2006-06-17T13:47:33Z")

</div>

Heh, this is incredibly simple… I just wanted to share it with y’all.

It simply uses cURL to print the headers of any page to stdout… and ignores the rest of the file.

```auto
curl -o void -D - http://google.com

```

Yeah, so, pretty tiny, but I found it really useful.

**Edit** : Ah shoot. I’m stupid. It was creating a file [font=monospace]void[/font] in the directory it was run within. Duh! I’m stupid.
