• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP set cookie
7cookies
8CURLOPT_REFERER
9curl_easy_reset
10</keywords>
11</info>
12#
13# Server-side
14<reply>
15<data>
16HTTP/1.1 200 OK
17Date: Thu, 09 Nov 2010 14:49:00 GMT
18Content-Length: 6
19Connection: close
20Content-Type: text/html
21
22-foo-
23</data>
24
25# since the request runs twice
26<datacheck>
27HTTP/1.1 200 OK
28Date: Thu, 09 Nov 2010 14:49:00 GMT
29Content-Length: 6
30Connection: close
31Content-Type: text/html
32
33-foo-
34HTTP/1.1 200 OK
35Date: Thu, 09 Nov 2010 14:49:00 GMT
36Content-Length: 6
37Connection: close
38Content-Type: text/html
39
40-foo-
41</datacheck>
42
43</reply>
44
45# Client-side
46<client>
47<server>
48http
49</server>
50# tool is what to use instead of 'curl'
51<tool>
52lib598
53</tool>
54
55 <name>
56curl_easy_reset with referer and other strings set
57 </name>
58 <command>
59http://%HOSTIP:%HTTPPORT/598
60</command>
61</client>
62
63#
64# Verify data after the test has been "shot"
65<verify>
66<protocol>
67GET /598 HTTP/1.1
68Host: %HOSTIP:%HTTPPORT
69User-Agent: the-moo agent next generation
70Accept: */*
71Referer: http://example.com/the-moo
72Cookie: name=moo
73
74GET /598 HTTP/1.1
75Host: %HOSTIP:%HTTPPORT
76Accept: */*
77
78</protocol>
79</verify>
80</testcase>
81