xref: /curl/tests/data/test420 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6cookies
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data crlf="yes">
14HTTP/1.1 200 OK
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Accept-Ranges: bytes
17Content-Length: 6
18Content-Type: text/html
19Set-Cookie: mycookie=; Max-Age=-1; Expires=Thu, 01 Jan 1970 00:00:00 GMT
20Set-Cookie: mycookie3=; Path=/func_test; Max-Age=-1; Expires=Thu, 01 Jan 1970 00:00:00 GMT
21Set-Cookie: mycookie4=; Path=/func_test; Max-Age=-1; Expires=Thu, 01 Jan 1970 00:00:
22Set-Cookie: mycookie5=; Path=/func_test; Max-Age=-1; Expires=Thu, 01 Jan 1970 00:00:00 GMT
23Set-Cookie: mycookie6=; Path=/func_test; Max-Age=-1; Expires=Thu, 01 Jan 1970 00:00:00 GMT
24Set-Cookie: mycookie1=; Path=/; Max-Age=-1; Expires=Thu, 01 Jan 1970 00:00:00 GMT
25
26-foo-
27</data>
28</reply>
29
30#
31# Client-side
32<client>
33<server>
34http
35</server>
36<name>
37Setting cookies set with expired dates that were loaded from jar
38</name>
39<command>
40http://%HOSTIP:%HTTPPORT/func_test/del_cookie -b %LOGDIR/cookie%TESTNUMBER -c %LOGDIR/save%TESTNUMBER
41</command>
42<file name="%LOGDIR/cookie%TESTNUMBER" mode="text">
43%HOSTIP	FALSE	/func_test	FALSE	21709598616	mycookie6	991
44#HttpOnly_%HOSTIP	FALSE	/func_test	FALSE	21709598616	mycookie5	990
45#HttpOnly_%HOSTIP	FALSE	/func_test	FALSE	21709598616	mycookie4	950
46#HttpOnly_%HOSTIP	FALSE	/func_test	FALSE	21709598616	mycookie3	900
47#HttpOnly_%HOSTIP	FALSE	/func_test/	FALSE	21709598616	mycookie2	5900
48#HttpOnly_%HOSTIP	FALSE	/	FALSE	21709598616	mycookie1	4900
49#HttpOnly_%HOSTIP	FALSE	/func_test/	FALSE	0	mycookie	1200
50</file>
51<features>
52cookies
53</features>
54</client>
55
56#
57# Verify data after the test has been "shot"
58<verify>
59<protocol crlf="yes">
60GET /func_test/del_cookie HTTP/1.1
61Host: %HOSTIP:%HTTPPORT
62User-Agent: curl/%VERSION
63Accept: */*
64Cookie: mycookie2=5900; mycookie=1200; mycookie3=900; mycookie4=950; mycookie5=990; mycookie6=991; mycookie1=4900
65
66</protocol>
67<file name="%LOGDIR/save%TESTNUMBER" mode="text">
68# Netscape HTTP Cookie File
69# https://curl.se/docs/http-cookies.html
70# This file was generated by libcurl! Edit at your own risk.
71
72#HttpOnly_127.0.0.1	FALSE	/func_test/	FALSE	21709598616	mycookie2	5900
73</file>
74</verify>
75</testcase>
76