-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setCookie URL encoded the cookie string #68
Comments
Hi @nansenat16. What value are you trying to set the cookie? Is there an issue with spaces or plus signs? Thanks |
$this->setOpt(CURLOPT_COOKIE, http_build_query($this->cookies, '', '; ', PHP_QUERY_RFC3986)); |
my cookie is
Array
(
[APSCOOKIE_3506421940] => "Era%3D0%26Payload%3DFKKkxM9jWmffo2zpExeU+sY3AwPKjwNFPpLfRkY2u78wAbsqRu5wq8CBsEWs8Kw4%0A8Qnz0WZgF1J2X+eM68G5sUiNaqw9FntvM1Wed6cP6Be+V3K+umi4Hm2Wn1f+p3vN%0AV5ZW5UxrkhkYAh0qVh3SnRevKNhNd2m9r0meKXjjDSaubLU098Eh1qLRvEuq1qHe%0AVAlgybymPRmfJAgPZ9T0au+i+nieu7lY%0A%26AuthHash%3DgacmqF6UvP6aSSw3sKRq9zN%2F2KcA%0A"
[ccsrftoken] => "2F721697F7557E33D1B060C13DC2FEB7"
[opmode] =>
[rl] =>
) http://stackoverflow.com/questions/10967813/php-http-build-query-special-symbols |
Can you use print_r(array(
'false' => false,
'empty' => '',
'true' => true,
'1' => 1,
));
|
$curl = new Curl();
$curl->setCookie('APSCOOKIE_3506421940', urldecode('Era%3D0%26Payload%3DFKKkxM9jWmffo2zpExeU+sY3AwPKjwNFPpLfRkY2u78wAbsqRu5wq8CBsEWs8Kw4%0A8Qnz0WZgF1J2X+eM68G5sUiNaqw9FntvM1Wed6cP6Be+V3K+umi4Hm2Wn1f+p3vN%0AV5ZW5UxrkhkYAh0qVh3SnRevKNhNd2m9r0meKXjjDSaubLU098Eh1qLRvEuq1qHe%0AVAlgybymPRmfJAgPZ9T0au+i+nieu7lY%0A%26AuthHash%3DgacmqF6UvP6aSSw3sKRq9zN%2F2KcA%0A'));
$curl->setCookie('ccsrftoken', '2F721697F7557E33D1B060C13DC2FEB7');
$curl->setCookie('opmode', '');
$curl->setCookie('rl', '');
|
it's print_r output the string have double quotation. it's encode to %22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: