Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Test curl_getinfo() function with CURLINFO_COOKIELIST parameter --EXTENSIONS-- cu..
Decoded Output download
--TEST--
Test curl_getinfo() function with CURLINFO_COOKIELIST parameter
--EXTENSIONS--
curl
--FILE--
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_COOKIELIST, 'Set-Cookie: C1=v1; expires=Thu, 31-Dec-2037 23:59:59 GMT; path=/; domain=.php.net');
curl_setopt($ch, CURLOPT_COOKIELIST, 'Set-Cookie: C2=v2; expires=Thu, 31-Dec-2037 23:59:59 GMT; path=/; domain=.php.net');
var_dump(curl_getinfo($ch, CURLINFO_COOKIELIST));
?>
--EXPECT--
array(2) {
[0]=>
string(38) ".php.net TRUE / FALSE 2145916799 C1 v1"
[1]=>
string(38) ".php.net TRUE / FALSE 2145916799 C2 v2"
}
Did this file decode correctly?
Original Code
--TEST--
Test curl_getinfo() function with CURLINFO_COOKIELIST parameter
--EXTENSIONS--
curl
--FILE--
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_COOKIELIST, 'Set-Cookie: C1=v1; expires=Thu, 31-Dec-2037 23:59:59 GMT; path=/; domain=.php.net');
curl_setopt($ch, CURLOPT_COOKIELIST, 'Set-Cookie: C2=v2; expires=Thu, 31-Dec-2037 23:59:59 GMT; path=/; domain=.php.net');
var_dump(curl_getinfo($ch, CURLINFO_COOKIELIST));
?>
--EXPECT--
array(2) {
[0]=>
string(38) ".php.net TRUE / FALSE 2145916799 C1 v1"
[1]=>
string(38) ".php.net TRUE / FALSE 2145916799 C2 v2"
}
Function Calls
curl_init | 1 |
Stats
MD5 | f3e8fa20582c3cd6f6b0dc9caedd3ac7 |
Eval Count | 0 |
Decode Time | 86 ms |