blob: cecfd13f0bccc1b5a8da94a5ca3d1d132df233b3 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP proxy
6cookies
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 200 OK
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Length: 0
18Connection: close
19Content-Type: text/html
20Set-Cookie: a=b; Domain=.me.;
21
22</data>
23
24</reply>
25
26#
27# Client-side
28<client>
29<features>
30proxy
31</features>
32<server>
33http
34</server>
35 <name>
36URL with trailing dot and receiving a cookie for the TLD with dot
37 </name>
38 <command>
39-x http://%HOSTIP:%HTTPPORT http://firsthost.me. -c log/cookies%TESTNUMBER
40</command>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<protocol>
47GET http://firsthost.me./ HTTP/1.1
48Host: firsthost.me.
49User-Agent: curl/%VERSION
50Accept: */*
51Proxy-Connection: Keep-Alive
52
53</protocol>
54<file name="log/cookies%TESTNUMBER" mode="text">
55# Netscape HTTP Cookie File
56# https://curl.se/docs/http-cookies.html
57# This file was generated by libcurl! Edit at your own risk.
58
59</file>
60</verify>
61</testcase>