]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test25
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test25
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 301 This is a weirdo text message
5 Server: test-server/fake
6 Location: data/reply/25
7 Content-Length: 32
8 Connection: close
9
10 Redirect to the same URL again!
11 </data>
12 <datacheck>
13 HTTP/1.1 301 This is a weirdo text message
14 Server: test-server/fake
15 Location: data/reply/25
16 Content-Length: 32
17 Connection: close
18
19 HTTP/1.1 301 This is a weirdo text message
20 Server: test-server/fake
21 Location: data/reply/25
22 Content-Length: 32
23 Connection: close
24
25 HTTP/1.1 301 This is a weirdo text message
26 Server: test-server/fake
27 Location: data/reply/25
28 Content-Length: 32
29 Connection: close
30
31 HTTP/1.1 301 This is a weirdo text message
32 Server: test-server/fake
33 Location: data/reply/25
34 Content-Length: 32
35 Connection: close
36
37 HTTP/1.1 301 This is a weirdo text message
38 Server: test-server/fake
39 Location: data/reply/25
40 Content-Length: 32
41 Connection: close
42
43 HTTP/1.1 301 This is a weirdo text message
44 Server: test-server/fake
45 Location: data/reply/25
46 Content-Length: 32
47 Connection: close
48
49 </datacheck>
50 </reply>
51
52 # Client-side
53 <client>
54 <server>
55 http
56 </server>
57  <name>
58 looping HTTP Location: following with --max-redirs, no persistance
59  </name>
60  <command>
61 http://%HOSTIP:%HOSTPORT/want/25 -L --max-redirs 5
62 </command>
63 </test>
64
65 # Verify data after the test has been "shot"
66 <verify>
67 <strip>
68 ^User-Agent: curl/.*
69 </strip>
70 <protocol>
71 GET /want/25 HTTP/1.1
72 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
73 Host: 127.0.0.1:8999
74 Pragma: no-cache
75 Accept: */*
76
77 GET /want/data/reply/25 HTTP/1.1
78 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
79 Host: 127.0.0.1:8999
80 Pragma: no-cache
81 Accept: */*
82
83 GET /want/data/reply/data/reply/25 HTTP/1.1
84 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
85 Host: 127.0.0.1:8999
86 Pragma: no-cache
87 Accept: */*
88
89 GET /want/data/reply/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:8999
92 Pragma: no-cache
93 Accept: */*
94
95 GET /want/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1
96 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
97 Host: 127.0.0.1:8999
98 Pragma: no-cache
99 Accept: */*
100
101 GET /want/data/reply/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1
102 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
103 Host: 127.0.0.1:8999
104 Pragma: no-cache
105 Accept: */*
106
107 </protocol>
108
109 <errorcode>
110 47
111 </errorcode>
112 </verify>