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 / auth-03.txt
1 url
2   http://foo:bar@example.com/index.html
3 expected
4   abcdefghijklmnopqrstuvwxyz1234567890abcdef
5 expected_url
6   http://example.com/index2.html
7 ----------
8 GET /index.html HTTP/1.1
9 Host: example.com
10 Connection: close
11 User-Agent: HTTP-Tiny/VERSION
12 Authorization: Basic Zm9vOmJhcg==
13
14 ----------
15 HTTP/1.1 302 Found
16 Date: Thu, 03 Feb 1994 00:00:00 GMT
17 Content-Type: text/html
18 Content-Length: 53
19 Location: http://example.com/index2.html
20
21 <a href="http://example.com/index2.html">redirect</a>
22
23 ----------
24 GET /index2.html HTTP/1.1
25 Host: example.com
26 Connection: close
27 User-Agent: HTTP-Tiny/VERSION
28
29 ----------
30 HTTP/1.1 200 OK
31 Date: Thu, 03 Feb 1994 00:00:00 GMT
32 Content-Type: text/plain
33 Content-Length: 42
34
35 abcdefghijklmnopqrstuvwxyz1234567890abcdef
36