Debian Codegraph @

curl/tests/data/test25

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 followlocation
6 --max-redirs
7 </keywords>
8 </info>
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>
62 <server>
63 http
64 </server>
65 <name>
66 looping HTTP Location: following with --max-redirs, no persistance
67 </name>
68 <command>
69 http://%HOSTIP:%HTTPPORT/want/25 -L --max-redirs 5
70 </command>
71 </client>
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)
81 Host: 127.0.0.1:%HTTPPORT
82 Accept: */*
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)
86 Host: 127.0.0.1:%HTTPPORT
87 Accept: */*
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)
91 Host: 127.0.0.1:%HTTPPORT
92 Accept: */*
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)
96 Host: 127.0.0.1:%HTTPPORT
97 Accept: */*
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)
101 Host: 127.0.0.1:%HTTPPORT
102 Accept: */*
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)
106 Host: 127.0.0.1:%HTTPPORT
107 Accept: */*
108
109 </protocol>
110
111 <errorcode>
112 47
113 </errorcode>
114 </verify>