in reply to libwww-perl basics
Maybe you can get the Content-Disposition with a HEAD request.
$ua->head( $url )In terms of dumping the headers you can do something like
my @field_names = $response->headers->header_field_names; print "$_ => ", $response->header($_), "\n" for @field_names;
or better yet
$response->headers->scan(sub { my ($key, $value) = @_; print "$key => $value\n"; });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: libwww-perl basics
by Anonymous Monk on Aug 13, 2010 at 10:47 UTC | |
by rowdog (Curate) on Aug 13, 2010 at 11:22 UTC | |
|
Re^2: libwww-perl basics
by Anonymous Monk on Aug 13, 2010 at 10:54 UTC |