File: test46

package info (click to toggle)
curl 8.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 32,016 kB
  • sloc: ansic: 202,975; perl: 20,695; python: 10,293; sh: 6,684; makefile: 1,528; pascal: 239; cpp: 174
file content (111 lines) | stat: -rw-r--r-- 3,269 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
HTTP
HTTP GET
cookies
cookiejar
--resolve
</keywords>
</info>

# Server-side
<reply>
<data crlf="headers">
HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Tue, 25 Sep 2001 19:37:44 GMT
Content-Type: text/html
%if large-time
Set-Cookie: ckyPersistent=permanent; expires=Fri, 13-Feb-2525 11:56:27 GMT; path=/
%else
Set-Cookie: ckyPersistent=permanent; expires=Fri, 13-Feb-2037 11:56:27 GMT; path=/
%endif
Set-Cookie: ckySession=temporary; path=/
Set-Cookie: ASPSESSIONIDQGGQQSJJ=GKNBDIFAAOFDPDAIEAKDIBKE; path=/
Set-Cookie: justaname=; path=/;
Set-Cookie: simplyhuge=%repeat[3998 x z]%
Cache-control: private
Content-Length: 41

This server reply is for testing cookies
</data>
</reply>

# Client-side
<client>
<server>
http
</server>
<name>
HTTP with bad domain name, get cookies and store in cookie jar
</name>
# Explicitly set the time zone to a known good one, in case the user is
# using one of the 'right' zones that take into account leap seconds
# which causes the cookie expiry times to be different from what we expect.
<setenv>
TZ=GMT
</setenv>
<command>
domain..tld:%HTTPPORT/want/%TESTNUMBER --resolve domain..tld:%HTTPPORT:%HOSTIP -c %LOGDIR/jar%TESTNUMBER -b %LOGDIR/injar%TESTNUMBER
</command>
<file name="%LOGDIR/injar%TESTNUMBER">
# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
# This is generated by libcurl!  Do not edit.

%if large-time
www.fake.come	FALSE	/	FALSE	22147483647	cookiecliente	si
www.loser.com	FALSE	/	FALSE	22139150993	UID	99
domain..tld	FALSE	/	FALSE	22139150993	mooo	indeed
#HttpOnly_domain..tld	FALSE	/want	FALSE	22139150993	mooo2	indeed2
%else
www.fake.come	FALSE	/	FALSE	2147483647	cookiecliente	si
www.loser.com	FALSE	/	FALSE	2139150993	UID	99
domain..tld	FALSE	/	FALSE	2139150993	mooo	indeed
#HttpOnly_domain..tld	FALSE	/want	FALSE	2139150993	mooo2	indeed2
%endif
domain..tld	FALSE	/want	FALSE	0	empty%TAB
</file>
<features>
cookies
</features>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol crlf="headers">
GET /want/%TESTNUMBER HTTP/1.1
Host: domain..tld:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Cookie: empty=; mooo2=indeed2; mooo=indeed

</protocol>
<file name="%LOGDIR/jar%TESTNUMBER" mode="text">
# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.

domain..tld	FALSE	/want	FALSE	0	simplyhuge	%repeat[3998 x z]%
domain..tld	FALSE	/	FALSE	0	justaname%TAB
domain..tld	FALSE	/	FALSE	0	ASPSESSIONIDQGGQQSJJ	GKNBDIFAAOFDPDAIEAKDIBKE
domain..tld	FALSE	/	FALSE	0	ckySession	temporary
domain..tld	FALSE	/	FALSE	%days[400]	ckyPersistent	permanent
%if large-time
domain..tld	FALSE	/want	FALSE	0	empty%TAB
#HttpOnly_domain..tld	FALSE	/want	FALSE	22139150993	mooo2	indeed2
domain..tld	FALSE	/	FALSE	22139150993	mooo	indeed
www.loser.com	FALSE	/	FALSE	22139150993	UID	99
www.fake.come	FALSE	/	FALSE	22147483647	cookiecliente	si
%else
domain..tld	FALSE	/want	FALSE	0	empty%TAB
#HttpOnly_domain..tld	FALSE	/want	FALSE	2139150993	mooo2	indeed2
domain..tld	FALSE	/	FALSE	2139150993	mooo	indeed
www.loser.com	FALSE	/	FALSE	2139150993	UID	99
www.fake.come	FALSE	/	FALSE	2147483647	cookiecliente	si
%endif
</file>
</verify>
</testcase>