mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-13 23:45:42 +00:00
Implement CookieArray for handling decoded cookie name lookup (#1078)
This commit is contained in:
@@ -176,6 +176,11 @@ if ($test === 'http_basic_auth') {
|
||||
setcookie('cookie1', 'scrumptious');
|
||||
setcookie('cookie2', 'mouthwatering');
|
||||
exit;
|
||||
} elseif ($test === 'encoded_cookie') {
|
||||
header('Set-Cookie: dingus=foo%3Bbar; path=/');
|
||||
header('Set-Cookie: a%3Bb=foo%3Bbar; path=/', false);
|
||||
header('Set-Cookie: spaced=hello%20world; path=/', false);
|
||||
exit;
|
||||
} elseif ($test === 'response_header') {
|
||||
header('Content-Type: application/json');
|
||||
header('ETag: ' . md5('worldpeace'));
|
||||
|
||||
Reference in New Issue
Block a user