| <?xml version="1.0" encoding="US-ASCII"?> |
| <testcase> |
| <info> |
| <keywords> |
| HTTP |
| HTTP GET |
| cookies |
| cookiejar |
| </keywords> |
| </info> |
| # Server-side |
| |
| <reply> |
| <data crlf="headers"> |
| HTTP/1.1 200 OK |
| Content-Length: 4 |
| Content-Type: text/html |
| Funny-head: yesyes |
| Set-Cookie: name=value; domain=test.curl; path=/we/want |
| |
| boo |
| </data> |
| <data2 crlf="headers"> |
| HTTP/1.1 200 OK |
| Content-Length: 4 |
| Content-Type: text/html |
| Funny-head: yesyes |
| Set-Cookie: name=value; domain=test.curl; path=/WE/WANT |
| |
| boo |
| </data2> |
| </reply> |
| |
| # Client-side |
| <client> |
| <server> |
| http |
| </server> |
| <name> |
| cookies for paths using different case |
| </name> |
| <command> |
| http://test.curl:%HTTPPORT/we/want/ http://test.curl:%HTTPPORT/WE/WANT/%TESTNUMBER0002 -c %LOGDIR/jar%TESTNUMBER.txt --resolve test.curl:%HTTPPORT:%HOSTIP |
| </command> |
| <features> |
| cookies |
| </features> |
| </client> |
| |
| # Verify data after the test has been "shot" |
| <verify> |
| <protocol crlf="headers"> |
| GET /we/want/ HTTP/1.1 |
| Host: test.curl:%HTTPPORT |
| User-Agent: curl/%VERSION |
| Accept: */* |
| |
| GET /WE/WANT/%TESTNUMBER0002 HTTP/1.1 |
| Host: test.curl:%HTTPPORT |
| User-Agent: curl/%VERSION |
| Accept: */* |
| |
| </protocol> |
| <file name="%LOGDIR/jar%TESTNUMBER.txt" mode="text"> |
| # Netscape HTTP Cookie File |
| # https://curl.se/docs/http-cookies.html |
| # This file was generated by libcurl! Edit at your own risk. |
| |
| .test.curl TRUE /WE/WANT FALSE 0 name value |
| .test.curl TRUE /we/want FALSE 0 name value |
| </file> |
| </verify> |
| </testcase> |