1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6cookies 7header dump 8</keywords> 9</info> 10 11# This test verifies that the cookie file gets created even if the last cookie 12# has been removed - particularly important when the file is going to be read 13# again and thus must not contain old contents. 14 15# Server-side 16<reply> 17<data> 18HTTP/1.1 200 OK 19Date: Tue, 09 Nov 2010 14:49:00 GMT 20Server: test-server/fake 21Content-Type: text/html 22Funny-head: yesyes swsclose 23Set-Cookie: foobar=name; expires=Thu, 22 Nov 2525 10:54:11 GMT; 24 25</data> 26<data2> 27HTTP/1.1 200 OK 28Date: Tue, 09 Nov 2010 14:49:00 GMT 29Server: test-server/fake 30Content-Type: text/html 31Funny-head: yesyes swsclose 32Set-Cookie: foobar=name; expires=Thu, 01 Jan 1970 00:00:00 GMT; 33 34</data2> 35</reply> 36 37# Client-side 38<client> 39<server> 40http 41</server> 42<name> 43HTTP with cookiejar without cookies left 44</name> 45<command> 46http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b none -c %LOGDIR/cookies%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER0002 47</command> 48<features> 49cookies 50</features> 51</client> 52 53# Verify data after the test has been "shot" 54<verify> 55<protocol> 56GET /we/want/%TESTNUMBER HTTP/1.1 57Host: %HOSTIP:%HTTPPORT 58User-Agent: curl/%VERSION 59Accept: */* 60 61GET /we/want/%TESTNUMBER0002 HTTP/1.1 62Host: %HOSTIP:%HTTPPORT 63User-Agent: curl/%VERSION 64Accept: */* 65Cookie: foobar=name 66 67</protocol> 68<file name="%LOGDIR/cookies%TESTNUMBER" mode="text"> 69# Netscape HTTP Cookie File 70# https://curl.se/docs/http-cookies.html 71# This file was generated by libcurl! Edit at your own risk. 72 73</file> 74</verify> 75</testcase> 76