This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Merge branch 'safer' into blead
[perl5.git] / cpan / HTTP-Tiny / corpus / redirect-01.txt
CommitLineData
a3ab329f
DG
1url
2 http://example.com/index.html
3expected
4 abcdefghijklmnopqrstuvwxyz1234567890abcdef
fcfb9f49
CBW
5expected_url
6 http://example.com/index2.html
a3ab329f
DG
7----------
8GET /index.html HTTP/1.1
9Host: example.com
10Connection: close
11User-Agent: HTTP-Tiny/VERSION
12
13----------
14HTTP/1.1 302 Found
15Date: Thu, 03 Feb 1994 00:00:00 GMT
16Content-Type: text/html
17Content-Length: 53
18Location: http://example.com/index2.html
19
20<a href="http://example.com/index2.html">redirect</a>
21
22----------
23GET /index2.html HTTP/1.1
24Host: example.com
25Connection: close
26User-Agent: HTTP-Tiny/VERSION
27
28----------
29HTTP/1.1 200 OK
30Date: Thu, 03 Feb 1994 00:00:00 GMT
31Content-Type: text/plain
32Content-Length: 42
33
34abcdefghijklmnopqrstuvwxyz1234567890abcdef
35