Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test8
blob55e315f71109bbbb8e10874b66217b8fa59b0ced
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 cookies
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.1 200 OK swsclose
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Server: test-server/fake
16 </data>
17 </reply>
19 # Client-side
20 <client>
21 <server>
22 http
23 </server>
24  <name>
25 HTTP with cookie parsing from header file
26  </name>
27  <command>
28 http://%HOSTIP:%HTTPPORT/we/want/8 -b log/heads8.txt
29 </command>
31 # We create this file before the command is invoked!
32 <file name="log/heads8.txt">
33 HTTP/1.1 200 OK
34 Date: Thu, 09 Nov 2010 14:49:00 GMT
35 Server: test-server/fake
36 Content-Type: text/html
37 Funny-head: yesyes
38 Set-Cookie: foobar=name; domain=127.0.0.1; path=/;
39 Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
40 Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
41 Set-Cookie: cookie=yes; path=/we;
42 Set-Cookie: nocookie=yes; path=/WE;
44 </file>
45 </client>
47 # Verify data after the test has been "shot"
48 <verify>
49 <strip>
50 ^User-Agent:.*
51 </strip>
52 <protocol>
53 GET /we/want/8 HTTP/1.1
54 Host: %HOSTIP:%HTTPPORT
55 Accept: */*
56 Cookie: cookie=yes; partmatch=present; foobar=name
58 </protocol>
59 </verify>
60 </testcase>