-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathredirect-04.txt
52 lines (43 loc) · 1.01 KB
/
redirect-04.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
new_args
max_redirect: 2
url
http://example.com/index.html
expected
abcdefghijklmnopqrstuvwxyz1234567890abcdef
expected_url
http://example.com/index3.html
----------
GET /index.html HTTP/1.1
Host: example.com
Connection: close
User-Agent: HTTP-Tiny/VERSION
----------
HTTP/1.1 302 Found
Date: Thu, 03 Feb 1994 00:00:00 GMT
Content-Type: text/html
Content-Length: 53
Location: http://example.com/index2.html
<a href="http://example.com/index2.html">redirect</a>
----------
GET /index2.html HTTP/1.1
Host: example.com
Connection: close
User-Agent: HTTP-Tiny/VERSION
----------
HTTP/1.1 302 Found
Date: Thu, 03 Feb 1994 00:00:00 GMT
Content-Type: text/html
Content-Length: 53
Location: http://example.com/index3.html
<a href="http://example.com/index3.html">redirect</a>
----------
GET /index3.html HTTP/1.1
Host: example.com
Connection: close
User-Agent: HTTP-Tiny/VERSION
----------
HTTP/1.1 200 OK
Date: Thu, 03 Feb 1994 00:00:00 GMT
Content-Type: text/plain
Content-Length: 42
abcdefghijklmnopqrstuvwxyz1234567890abcdef