«
»

HTTP headers

October 13th, 2005 by George Notaras

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.

The HTTP headers by George Notaras, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Terms and conditions beyond the scope of this license may be available at www.g-loaded.eu.

Related Articles

Tags: , ,

One Response to “HTTP headers”

  1. agorf Says :

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

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight=""> <pre>