Alien-Base-ModuleBuild
view release on metacpan or search on metacpan
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively convey
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
t/alien_base_modulebuild_repository_http.t view on Meta::CPAN
$response;
},
],
);
my $repo = Alien::Base::ModuleBuild::Repository::HTTP->new(
host => 'foo.bar.com',
);
is(Alien::Base::ModuleBuild::File->new( repository => $repo, filename => 'bogus' )->get, 'bogus', 'no content disposition');
$content_disposition = 'attachment; filename=foo.txt';
is(Alien::Base::ModuleBuild::File->new( repository => $repo, filename => 'bogus' )->get, 'foo.txt', 'filename = foo.txt (bare)');
$content_disposition = 'attachment; filename="foo.txt"';
is(Alien::Base::ModuleBuild::File->new( repository => $repo, filename => 'bogus' )->get, 'foo.txt', 'filename = foo.txt (double quotes)');
$content_disposition = 'attachment; filename="foo with space.txt" and some other stuff';
is(Alien::Base::ModuleBuild::File->new( repository => $repo, filename => 'bogus' )->get, 'foo with space.txt', 'filename = foo with space.txt (double quotes with space)');
$content_disposition = 'attachment; filename=foo.txt and some other stuff';
is(Alien::Base::ModuleBuild::File->new( repository => $repo, filename => 'bogus' )->get, 'foo.txt', 'filename = foo.txt (space terminated)');
};
subtest 'check_http_response()' => sub {
subtest '599 no SSL' => sub {
my $res = {
'reason' => 'Internal Exception',
'url' => 'https://mytest.test',
( run in 0.812 second using v1.01-cache-2.11-cpan-e1769b4cff6 )