mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:43:33 +03:00
cookie: compare path case sensitively
Verify with test 1645 Reported-by: Joshua Rogers Closes #21616
This commit is contained in:
parent
71430e87fd
commit
a15cfeb100
3 changed files with 76 additions and 3 deletions
73
tests/data/test1645
Normal file
73
tests/data/test1645
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
<?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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue