HTTP headers

1 Comment

Ever had the need to see what headers a remote web site sends back to you when you request a page with your browser?

You can use curl like this:

# curl --dump-header headers.txt http://www.example.com/ 1> /dev/null

The HTTP headers are saved in the headers.txt file.

HTTP headers by George Notaras is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Copyright © 2005 - Some Rights Reserved

George Notaras avatar

About George Notaras

George Notaras is the editor of the G-Loaded Journal, a technical blog about Free and Open-Source Software. George, among other things, is an enthusiast self-taught GNU/Linux system administrator. He has created this web site to share the IT knowledge and experience he has gained over the years with other people. George primarily uses CentOS and Fedora. He has also developed some open-source software projects in his spare time.

One response on “HTTP headers

  1. agorf Permalink →

    Although I prefer cURL, Wget has something similar with the -S and --save-headers options.