open my $FH, '>', 'file.txt.HEAD' or die $!; $ctx->cat($FH, 'http://127.0.0.1/file.txt', 'HEAD');