--- FAQ.pod 2004-06-25 23:10:45.000000000 -0400 +++ FAQ.new 2005-02-01 09:18:30.865078400 -0500 @@ -49,6 +49,19 @@ my @frame_links = $mech->find_link( tag => "frame" ); +=head2 How do I get a list of HTTP headers and their values? + +All L methods work on a L object which is +returned by the I, I, I, I, +I, and I methods. + + my $mech = WWW::Mechanize->new( autocheck => 1 ); + $mech->get( 'http://my.site.com' ); + my $res = $mech->response(); + for my $key ( $response->header_field_names() ) { + print $key, " : ", $response->header( $key ), "\n"; + } + =head1 Why doesn't this work? =head2 Why don't https:// URLs work?