in reply to How can I capture the full header of a cgi script?
If you have LWP installed, it comes with the GET utility, which is incredibly useful for just that:
GET -USe http://google.com [download]