xref: /curl/tests/data/test676 (revision 3fd80c7b)
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: Tue, 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: Tue, 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: Tue, 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<file name="%LOGDIR/cookies%TESTNUMBER">
48%HOSTIP	TRUE	/we/want/	FALSE	22118138987	proven	yes
49</file>
50<server>
51http
52</server>
53# tool is what to use instead of 'curl'
54<tool>
55lib%TESTNUMBER
56</tool>
57
58<name>
59verify setting CURLOPT_COOKIEFILE to NULL again
60</name>
61<command>
62http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER %LOGDIR/cookies676
63</command>
64<features>
65cookies
66</features>
67</client>
68
69#
70# Verify data after the test has been "shot"
71<verify>
72<protocol>
73GET /we/want/%TESTNUMBER HTTP/1.1
74Host: %HOSTIP:%HTTPPORT
75User-Agent: the-moo agent next generation
76Accept: */*
77Cookie: proven=yes
78
79GET /we/want/%TESTNUMBER HTTP/1.1
80Host: %HOSTIP:%HTTPPORT
81User-Agent: the-moo agent next generation
82Accept: */*
83
84</protocol>
85</verify>
86</testcase>
87