Open
Description
What is the expected behavior?
getCookie()
: expect arg to accept a decoded name
expect the return value to be decoded
getCookies()
expect decoded names/values
responseCookies
public property : expect decoded names/values
What is the actual behavior?
must pass an encoded name to getCookie()
and it returns a raw/encoded value
What steps will reproduce the problem?
response headers include
Set-Cookie: dingus=foo%3Bbar; path=/
Set-Cookie: a%3Bb=foo%3Bbar; path=/
Code:
$curl->getCookie('dingus') // returns "foo%3Bbar" I would expect "foo;bar"
$curl->getCookie('a;b'); // returns null, I would expect "foo;bar"
$curl->getCookie('a%3Bb'); // returns "foo%3Bbar" -> ugh
likewise, I would expect getCookies
(and public responseCookies
property) to return array of decoded keys/values
feature or bug?