blob: 9dbe64c23edf5036f9a0690620587398a27033f9 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6cookies
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK
14Content-Length: 4
15Connection: close
16
17boo
18</data>
19</reply>
20
21# Client-side
22<client>
23<server>
24http
25</server>
26 <name>
27HTTP with cookies file and custom added cookie
28 </name>
29 <command>
30http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b log/jar%TESTNUMBER.txt -b "tool=curl; name=fool"
31</command>
32<file name="log/jar%TESTNUMBER.txt">
33# Netscape HTTP Cookie File
34# https://curl.se/docs/http-cookies.html
35# This file was generated by libcurl! Edit at your own risk.
36
37.%HOSTIP TRUE /silly/ FALSE 0 ismatch this
38.%HOSTIP TRUE / FALSE 0 partmatch present
39%HOSTIP FALSE /we/want/ FALSE 2139150993 nodomain value
40</file>
41</client>
42
43# Verify data after the test has been "shot"
44<verify>
45<protocol>
46GET /we/want/%TESTNUMBER HTTP/1.1
47Host: %HOSTIP:%HTTPPORT
48User-Agent: curl/%VERSION
49Accept: */*
50Cookie: nodomain=value; partmatch=present; tool=curl; name=fool
51
52</protocol>
53</verify>
54</testcase>