]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test40
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test40
1 #
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 302 OK swsclose
6 Location: ../moo.html/?name=d a niel&testcase=/400002    
7 Date: Thu, 09 Nov 2010 14:49:00 GMT
8 Connection: close
9
10 </data>
11 <data2>
12 HTTP/1.1 200 OK swsclose
13 Location: this should be ignored
14 Date: Thu, 09 Nov 2010 14:49:00 GMT
15 Connection: close
16
17 body
18 </data2>
19 <datacheck>
20 HTTP/1.1 302 OK swsclose
21 Location: ../moo.html/?name=d a niel&testcase=/400002    
22 Date: Thu, 09 Nov 2010 14:49:00 GMT
23 Connection: close
24
25 HTTP/1.1 200 OK swsclose
26 Location: this should be ignored
27 Date: Thu, 09 Nov 2010 14:49:00 GMT
28 Connection: close
29
30 body
31 </datacheck>
32 </reply>
33
34 #
35 # Client-side
36 <client>
37 <server>
38 http
39 </server>
40  <name>
41 HTTP redirect with whitespace after ? (and conversion)
42  </name>
43  <command>
44 http://%HOSTIP:%HOSTPORT/we/are/all/twits/40 -L
45 </command>
46 </client>
47
48 #
49 # Verify data after the test has been "shot"
50 <verify>
51 <strip>
52 ^User-Agent:.*
53 </strip>
54 <protocol>
55 GET /we/are/all/twits/40 HTTP/1.1
56 Host: 127.0.0.1:8999
57 Pragma: no-cache
58 Accept: */*
59
60 GET /we/are/all/moo.html/?name=d+a+niel&testcase=/400002 HTTP/1.1
61 User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3
62 Host: 127.0.0.1:8999
63 Pragma: no-cache
64 Accept: */*
65
66 </protocol>
67 </verify>