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