This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mktables: Move file handling to non-exceptional order
[perl5.git] / cpan / HTTP-Tiny / corpus / redirect-03.txt
CommitLineData
a3ab329f
DG
1new_args
2 max_redirect: 1
3url
4 http://example.com/index.html
5expected
6 <a href="http://example.com/index3.html">redirect</a>
fcfb9f49
CBW
7expected_url
8 http://example.com/index2.html
a3ab329f
DG
9----------
10GET /index.html HTTP/1.1
11Host: example.com
12Connection: close
13User-Agent: HTTP-Tiny/VERSION
14
15----------
16HTTP/1.1 302 Found
17Date: Thu, 03 Feb 1994 00:00:00 GMT
18Content-Type: text/html
19Content-Length: 53
20Location: http://example.com/index2.html
21
22<a href="http://example.com/index2.html">redirect</a>
23
24----------
25GET /index2.html HTTP/1.1
26Host: example.com
27Connection: close
28User-Agent: HTTP-Tiny/VERSION
29
30----------
31HTTP/1.1 302 Found
32Date: Thu, 03 Feb 1994 00:00:00 GMT
33Content-Type: text/html
34Content-Length: 53
35Location: http://example.com/index3.html
36
37<a href="http://example.com/index3.html">redirect</a>
38
39----------
40GET /index3.html HTTP/1.1
41Host: example.com
42Connection: close
43User-Agent: HTTP-Tiny/VERSION
44
45----------
46HTTP/1.1 200 OK
47Date: Thu, 03 Feb 1994 00:00:00 GMT
48Content-Type: text/plain
49Content-Length: 42
50
51abcdefghijklmnopqrstuvwxyz1234567890abcdef
52