Debian Codegraph @

curl/tests/data/test6

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 HTTP set cookie
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
16 swsclose: booo
17
18 </data>
19 </reply>
20
21 # Client-side
22 <client>
23 <server>
24 http
25 </server>
26 <name>
27 HTTP with simple cookie send
28 </name>
29 <command>
30 http://%HOSTIP:%HTTPPORT/we/want/that/page/6 -b "name=contents;name2=content2"
31 </command>
32 </client>
33
34 # Verify data after the test has been "shot"
35 <verify>
36 <strip>
37 ^User-Agent:.*
38 </strip>
39 <protocol>
40 GET /we/want/that/page/6 HTTP/1.1
41 Host: 127.0.0.1:%HTTPPORT
42 Accept: */*
43 Cookie: name=contents;name2=content2
44
45 </protocol>
46 </verify>