Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

getCookie raw vs decoded name/value #588

Open
@bkdotcom

Description

@bkdotcom

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 togetCookie() 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 expectgetCookies (and publicresponseCookies property) to return array of decoded keys/values

feature or bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp