• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6cookies
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK
14Date: Thu, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Content-Type: text/html
17Content-Length: 4
18Set-Cookie: moo=yes;
19
20hej
21</data>
22<data2>
23HTTP/1.1 200 OK
24Date: Thu, 09 Nov 2010 14:49:00 GMT
25Server: test-server/fake
26Content-Type: text/html
27Content-Length: 0
28Funny-head: yesyes swsclose
29
30</data2>
31</reply>
32
33# Client-side
34<client>
35<server>
36http
37</server>
38 <name>
39HTTP with cookie using host name 'moo'
40 </name>
41 <command>
42-x http://%HOSTIP:%HTTPPORT http://moo/we/want/331 -b none http://moo/we/want/3310002
43</command>
44<features>
45proxy
46</features>
47</client>
48
49# Verify data after the test has been "shot"
50<verify>
51<protocol>
52GET http://moo/we/want/331 HTTP/1.1
53Host: moo
54User-Agent: curl/%VERSION
55Accept: */*
56Proxy-Connection: Keep-Alive
57
58GET http://moo/we/want/3310002 HTTP/1.1
59Host: moo
60User-Agent: curl/%VERSION
61Accept: */*
62Proxy-Connection: Keep-Alive
63Cookie: moo=yes
64
65</protocol>
66</verify>
67</testcase>
68