• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15Set-Cookie: name=value; expires=Fri Feb 13 11:56:27 GMT 2132
16Set-Cookie: name2=value; expires=Fri Feb 13 11:56:27 ; 2132
17Set-Cookie: name3=value; expires=Fri Feb 13 11:56:27 ...................................................GMT 2132
18Set-Cookie: name4=value; expires=Fri Feb 13 11:56:27 ....................................................GMT 2132
19Accept-Ranges: bytes
20Content-Length: 6
21Connection: close
22
23-foo-
24</data>
25</reply>
26
27#
28# Client-side
29<client>
30<server>
31http
32</server>
33<features>
34cookies
35large-time
36</features>
37<name>
38HTTP cookies with long expire dates
39</name>
40<command>
41http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c %LOGDIR/c%TESTNUMBER
42</command>
43</client>
44
45#
46# Verify data after the test has been "shot"
47<verify>
48<protocol crlf="yes">
49GET /%TESTNUMBER HTTP/1.1
50Host: %HOSTIP:%HTTPPORT
51User-Agent: curl/%VERSION
52Accept: */*
53
54</protocol>
55<file name="%LOGDIR/c%TESTNUMBER" mode="text">
56# Netscape HTTP Cookie File
57# https://curl.se/docs/http-cookies.html
58# This file was generated by libcurl! Edit at your own risk.
59
60127.0.0.1	FALSE	/	FALSE	0	name4	value
61127.0.0.1	FALSE	/	FALSE	%days[400]	name3	value
62127.0.0.1	FALSE	/	FALSE	0	name2	value
63127.0.0.1	FALSE	/	FALSE	%days[400]	name	value
64</file>
65</verify>
66</testcase>
67