http://www.perlmonks.org?node_id=653839


in reply to How can I capture the full header of a cgi script?

You may want to try WWW::Mechanize

#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get("http://perlmonks.net"); my $headers = $mech->response->headers->as_string;