]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test7
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test7
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 200 OK
5 Date: Thu, 09 Nov 2010 14:49:00 GMT
6 Server: test-server/fake
7 Content-Type: text/html
8 Funny-head: yesyes swsclose
9 Set-Cookie: foobar=name; domain=127.0.0.1; path=/;
10 Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
11 Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
12
13 </data>
14 </reply>
15
16 # Client-side
17 <client>
18 <server>
19 http
20 </server>
21  <name>
22 HTTP with cookie parser and header recording
23  </name>
24  <command>
25 http://%HOSTIP:%HOSTPORT/we/want/7 -b none -D log/heads7.txt
26 </command>
27 </test>
28
29 # Verify data after the test has been "shot"
30 <verify>
31 <strip>
32 ^User-Agent:.*
33 </strip>
34 <protocol>
35 GET /we/want/7 HTTP/1.1
36 Host: 127.0.0.1:8999
37 Pragma: no-cache
38 Accept: */*
39
40 </protocol>
41 <file name="log/heads7.txt">
42 HTTP/1.1 200 OK
43 Date: Thu, 09 Nov 2010 14:49:00 GMT
44 Server: test-server/fake
45 Content-Type: text/html
46 Funny-head: yesyes swsclose
47 Set-Cookie: foobar=name; domain=127.0.0.1; path=/;
48 Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
49 Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
50
51 </file>
52 </verify>