What is an easy way to see the HTTP headers in a HTTP request?

Matthew Hawkins matthew at topic.com.au
Tue Apr 9 17:32:17 EST 2002


On Tue, 09 Apr 2002, Antony Stace wrote:
> What is an easy way to see the HTTP headers in a HTTP request.  I want to see things like
> 
> HTTP/1.1 200 OK
> Date; Fri, 30 Oct 1998 13:12:23 GMT
> Server: Apache/1.3.3 (Unix)
> Cache-Control: max-age=1800, must-revalidate
> ..
> ..
> ..

$ curl -I http://web.server/path/to/file.html
Example output from google's home page is:

HTTP/1.0 200 OK
Content-Length: 2373
Server: GWS/2.0
Date: Tue, 09 Apr 2002 07:30:41 GMT
Content-Type: text/html
Cache-Control: private
Set-Cookie: PREF=ID=6222a68f09666782:TM=1018337441:LM=1018337441:S=9awccVHkgeg; domain=.google.com; path=/; expires=Sun, 17-Jan-2038 19:14:07 GMT
Connection: close

-- 
Matt




More information about the linux mailing list