If you use LWP, you can use the header() method in the response object. The code would look something like this:
use LWP::UserAgent; my $ua = LWP::UserAgent->new(); my $response = $ua->get( $host ); foreach my $header (qw( Set-Cookie Server P3P )) { print $response->header( $header ); }
In reply to Re: checking output for text
by chromatic
in thread checking output for text
by common
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |