> Especially for debugging caching and whatnot, using curl -D - -o /dev/null http://example.net/ makes it extremely simple to see the headers the server is sending for a certain file.
Working on web stuff, I'd needed to see server headers many times, and I have always used the HEAD command, that is part of the libwww-perl package on ubuntu. It's just: HEAD http://example.com.
The libwww-perl package also comes with GET (which is similar to curl in that it sends the retrieved content to standard output) and POST (which sends a POST request to a server) commands which are very handy too.