~ubuntu-branches/ubuntu/feisty/curl/feisty

1.1.3 by Matthias Klose
Import upstream version 7.14.0
1
<info>
2
<keywords>
3
HTTP
4
HTTP GET
5
followlocation
6
--max-redirs
7
</keywords>
8
</info>
1 by Domenico Andreoli
Import upstream version 7.9.5
9
# Server-side
10
<reply>
11
<data>
12
HTTP/1.1 301 This is a weirdo text message
13
Server: test-server/fake
14
Location: data/reply/25
15
Content-Length: 32
16
Connection: close
17
18
Redirect to the same URL again!
19
</data>
20
<datacheck>
21
HTTP/1.1 301 This is a weirdo text message
22
Server: test-server/fake
23
Location: data/reply/25
24
Content-Length: 32
25
Connection: close
26
27
HTTP/1.1 301 This is a weirdo text message
28
Server: test-server/fake
29
Location: data/reply/25
30
Content-Length: 32
31
Connection: close
32
33
HTTP/1.1 301 This is a weirdo text message
34
Server: test-server/fake
35
Location: data/reply/25
36
Content-Length: 32
37
Connection: close
38
39
HTTP/1.1 301 This is a weirdo text message
40
Server: test-server/fake
41
Location: data/reply/25
42
Content-Length: 32
43
Connection: close
44
45
HTTP/1.1 301 This is a weirdo text message
46
Server: test-server/fake
47
Location: data/reply/25
48
Content-Length: 32
49
Connection: close
50
51
HTTP/1.1 301 This is a weirdo text message
52
Server: test-server/fake
53
Location: data/reply/25
54
Content-Length: 32
55
Connection: close
56
57
</datacheck>
58
</reply>
59
60
# Client-side
61
<client>
1.1.1 by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2
62
<server>
63
http
64
</server>
1 by Domenico Andreoli
Import upstream version 7.9.5
65
 <name>
1.1.4 by Martin Pitt
Import upstream version 7.15.1
66
looping HTTP Location: following with --max-redirs
1 by Domenico Andreoli
Import upstream version 7.9.5
67
 </name>
68
 <command>
1.1.2 by LaMont Jones
Import upstream version 7.12.3
69
http://%HOSTIP:%HTTPPORT/want/25 -L --max-redirs 5
1 by Domenico Andreoli
Import upstream version 7.9.5
70
</command>
1.1.3 by Matthias Klose
Import upstream version 7.14.0
71
</client>
1 by Domenico Andreoli
Import upstream version 7.9.5
72
73
# Verify data after the test has been "shot"
74
<verify>
75
<strip>
76
^User-Agent: curl/.*
77
</strip>
78
<protocol>
79
GET /want/25 HTTP/1.1
80
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
1.1.2 by LaMont Jones
Import upstream version 7.12.3
81
Host: 127.0.0.1:%HTTPPORT
1.1.1 by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2
82
Accept: */*
1 by Domenico Andreoli
Import upstream version 7.9.5
83
84
GET /want/data/reply/25 HTTP/1.1
85
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
1.1.2 by LaMont Jones
Import upstream version 7.12.3
86
Host: 127.0.0.1:%HTTPPORT
1.1.1 by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2
87
Accept: */*
1 by Domenico Andreoli
Import upstream version 7.9.5
88
89
GET /want/data/reply/data/reply/25 HTTP/1.1
90
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
1.1.2 by LaMont Jones
Import upstream version 7.12.3
91
Host: 127.0.0.1:%HTTPPORT
1.1.1 by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2
92
Accept: */*
1 by Domenico Andreoli
Import upstream version 7.9.5
93
94
GET /want/data/reply/data/reply/data/reply/25 HTTP/1.1
95
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
1.1.2 by LaMont Jones
Import upstream version 7.12.3
96
Host: 127.0.0.1:%HTTPPORT
1.1.1 by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2
97
Accept: */*
1 by Domenico Andreoli
Import upstream version 7.9.5
98
99
GET /want/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1
100
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
1.1.2 by LaMont Jones
Import upstream version 7.12.3
101
Host: 127.0.0.1:%HTTPPORT
1.1.1 by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2
102
Accept: */*
1 by Domenico Andreoli
Import upstream version 7.9.5
103
104
GET /want/data/reply/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1
105
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
1.1.2 by LaMont Jones
Import upstream version 7.12.3
106
Host: 127.0.0.1:%HTTPPORT
1.1.1 by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2
107
Accept: */*
1 by Domenico Andreoli
Import upstream version 7.9.5
108
109
</protocol>
110
111
<errorcode>
112
47
113
</errorcode>
114
</verify>