Imported Upstream version 7.48.0
[platform/upstream/curl.git] / tests / data / test1415
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 cookies
8 cookiejar
9 delete expired cookie
10 </keywords>
11 </info>
12
13 # Server-side
14 <reply>
15 <data>
16 HTTP/1.1 200 OK
17 Date: Thu, 09 Nov 2010 14:49:00 GMT
18 Server: test-server/fake
19 Content-Length: 4
20 Content-Type: text/html
21 Funny-head: yesyes
22 Set-Cookie: test1value=test1; domain=example.com; path=/;
23 Set-Cookie: test2value=test2; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
24 Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
25 Set-Cookie: test4value=test4; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
26 Set-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
27 Set-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
28 Set-Cookie: test7value=test7; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
29 Set-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
30
31 boo
32 </data>
33 </reply>
34
35 # Client-side
36 <client>
37 <server>
38 http
39 </server>
40 <name>
41 Delete expired cookies
42 </name>
43 <setenv>
44 TZ=GMT
45 </setenv>
46 <command>
47 http://example.com/we/want/1415 -b none -c log/jar1415.txt -x %HOSTIP:%HTTPPORT
48 </command>
49 </client>
50
51 # Verify data after the test has been "shot"
52 <verify>
53 <strip>
54 ^User-Agent:.*
55 </strip>
56 <protocol>
57 GET http://example.com/we/want/1415 HTTP/1.1\r
58 Host: example.com\r
59 Accept: */*\r
60 \r
61 </protocol>
62
63 <file name="log/jar1415.txt" mode="text">
64 # Netscape HTTP Cookie File
65 # https://curl.haxx.se/docs/http-cookies.html
66 # This file was generated by libcurl! Edit at your own risk.
67
68 .example.com    TRUE    /       FALSE   0       test1value      test1
69 .example.com    TRUE    /       FALSE   2114380800      test2value      test2
70 .example.com    TRUE    /       FALSE   2114380800      test4value      test4
71 .example.com    TRUE    /       FALSE   2114380800      test7value      test7
72 </file>
73 </verify>
74 </testcase>