Debian Codegraph @

curl/tests/data/test7

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