1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| my $reqs = [
HTTP::Request->new('GET', $url),
# these are all redirects. depending on how you set
# 'redirect_ok' they either just return the status code for
# redirect (like 302 moved), or continue to follow redirection.
HTTP::Request->new('GET', $url."research/ahoy/"),
HTTP::Request->new('GET', $url."research/ahoy/doc/paper.html"),
HTTP::Request->new('GET', "http://metacrawler.cs.washington.edu:6060/";),
# these are all non-existant server. the first one should take
# some time, but the following ones should be rejected right
# away
HTTP::Request->new('GET', "http://www.foobar.foo/research/ahoy/";),
HTTP::Request->new('GET', "http://www.foobar.foo/foobar/foo/";),
HTTP::Request->new('GET', "http://www.foobar.foo/baz/buzz.html";),
# although server exists, file doesn't
HTTP::Request->new('GET', $url."foobar/bar/baz.html"),
]; |
Partager